]> granicus.if.org Git - clang/commitdiff
Remove this poor "abstraction" from the AST. Sorry! =D
authorChandler Carruth <chandlerc@gmail.com>
Mon, 20 Jun 2011 07:38:56 +0000 (07:38 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 20 Jun 2011 07:38:56 +0000 (07:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133426 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Type.h

index 5f5b53a2224feaa2a935f3ac5c83cd3ce2c13c5f..8bedba95e4f6e49e109d18d7fa10a9a6b51f9cd1 100644 (file)
@@ -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);
 }