Patch to add semantics check for ObjC2's foreacn statement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45561 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/Sema.h b/Sema/Sema.h
index 8846d15..6f54651 100644
--- a/Sema/Sema.h
+++ b/Sema/Sema.h
@@ -285,6 +285,10 @@
/// isBuiltinObjcType - Returns true of the type is "id", "SEL", "Class"
/// or "Protocol".
bool isBuiltinObjcType(TypedefDecl *TD);
+
+ /// isObjcObjectPointerType - Returns tru if type is an objective-c pointer
+ /// to an object type; such as "id", "Class", Intf*, id<P>, etc.
+ bool isObjcObjectPointerType(QualType type) const;
/// AddInstanceMethodToGlobalPool - All instance methods in a translation
/// unit are added to a global pool. This allows us to efficiently associate