aboutsummaryrefslogtreecommitdiff
path: root/include/clang/AST/ASTContext.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-24 23:58:27 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-24 23:58:27 +0000
commitb6ccaac65ca72f72954eb3893bbd940bedd23f00 (patch)
treeb864371d60722f6ca98fa6640505af357ae89878 /include/clang/AST/ASTContext.h
parentffceb4ce42d3621025950dc5762cc213fab275d2 (diff)
Move isObjCObjectPointerType() from Sema to ASTContext.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53998 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/ASTContext.h')
-rw-r--r--include/clang/AST/ASTContext.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h
index 7572d18ca3..c981aa4116 100644
--- a/include/clang/AST/ASTContext.h
+++ b/include/clang/AST/ASTContext.h
@@ -289,6 +289,16 @@ public:
QualType getBuiltinVaListType() const { return BuiltinVaListType; }
//===--------------------------------------------------------------------===//
+ // Type Predicates.
+ //===--------------------------------------------------------------------===//
+
+ /// isObjCObjectPointerType - Returns true if type is an Objective-C pointer
+ /// to an object type. This includes "id" and "Class" (two 'special' pointers
+ /// to struct), Interface* (pointer to ObjCInterfaceType) and id<P> (qualified
+ /// ID type).
+ bool isObjCObjectPointerType(QualType Ty) const;
+
+ //===--------------------------------------------------------------------===//
// Type Sizing and Analysis
//===--------------------------------------------------------------------===//