From: Chandler Carruth Date: Mon, 20 Jun 2011 07:38:56 +0000 (+0000) Subject: Remove this poor "abstraction" from the AST. Sorry! =D X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c04985647bbd54d53b1f1219287eddce8ff530b5;p=clang 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 --- 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(); } 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(CanonicalType); }