diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-06-20 07:38:56 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-06-20 07:38:56 +0000 |
commit | c04985647bbd54d53b1f1219287eddce8ff530b5 (patch) | |
tree | 1162a4b527588a5fa3a87eae502ae840b71cf33e | |
parent | 1567a8ba8daaaa91a5de3c23026c9c19de017bd1 (diff) |
Remove this poor "abstraction" from the AST. Sorry! =D
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133426 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Type.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 5f5b53a222..8bedba95e4 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -1373,7 +1373,6 @@ public: bool isFunctionProtoType() const { return getAs<FunctionProtoType>(); } bool isPointerType() const; bool isAnyPointerType() const; // Any C pointer or ObjC object pointer - bool isPointerLikeType() const; bool isBlockPointerType() const; bool isVoidPointerType() const; bool isReferenceType() const; @@ -4517,19 +4516,6 @@ inline bool Type::isPointerType() const { inline bool Type::isAnyPointerType() const { return isPointerType() || isObjCObjectPointerType(); } - -/// \brief Tests whether the type behaves like a pointer type. -/// -/// This includes all of the pointer types including block pointers, -/// member pointers, and ObjC Object pointers. -/// -/// Note that this is distinct from hasPointerRepresentation. -/// -/// \returns True for types which behave like pointer types. -inline bool Type::isPointerLikeType() const { - return isAnyPointerType() || isBlockPointerType() || isMemberPointerType(); -} - inline bool Type::isBlockPointerType() const { return isa<BlockPointerType>(CanonicalType); } |