[cfe-commits] r133426 - /cfe/trunk/include/clang/AST/Type.h
Chandler Carruth
chandlerc at gmail.com
Mon Jun 20 00:38:56 PDT 2011
Author: chandlerc
Date: Mon Jun 20 02:38:56 2011
New Revision: 133426
URL: http://llvm.org/viewvc/llvm-project?rev=133426&view=rev
Log:
Remove this poor "abstraction" from the AST. Sorry! =D
Modified:
cfe/trunk/include/clang/AST/Type.h
Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=133426&r1=133425&r2=133426&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Mon Jun 20 02:38:56 2011
@@ -1373,7 +1373,6 @@
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::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);
}
More information about the cfe-commits
mailing list