Keep track of all declarations of an Objective-C class (both forward
authorDouglas Gregor <dgregor@apple.com>
Thu, 15 Dec 2011 20:29:51 +0000 (20:29 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 15 Dec 2011 20:29:51 +0000 (20:29 +0000)
commitdc9166c8e1120dc0df1859ba6e3d457a458fd20f
treeeb14bbba9db83cabdb68f9855daa4109c4c1940a
parent918f976e66e8311ab1053b83521511ddee039783
Keep track of all declarations of an Objective-C class (both forward
declarations and definitions) as ObjCInterfaceDecls within the same
redeclaration chain. This new representation matches what we do for
C/C++ variables/functions/classes/templates/etc., and makes it
possible to answer the query "where are all of the declarations of
this class?"

llvm-svn: 146679
21 files changed:
clang/include/clang/AST/DeclObjC.h
clang/lib/ARCMigrate/Transforms.cpp
clang/lib/AST/ASTImporter.cpp
clang/lib/AST/DeclObjC.cpp
clang/lib/AST/DeclPrinter.cpp
clang/lib/AST/DumpXML.cpp
clang/lib/AST/RecordLayoutBuilder.cpp
clang/lib/AST/Type.cpp
clang/lib/Analysis/CocoaConventions.cpp
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/Rewrite/RewriteObjC.cpp
clang/lib/Sema/IdentifierResolver.cpp
clang/lib/Sema/SemaCodeComplete.cpp
clang/lib/Sema/SemaDeclObjC.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/lib/Serialization/ASTWriterDecl.cpp
clang/test/Index/TestClassDecl.m
clang/test/SemaObjC/forward-class-1.m
clang/tools/libclang/CIndex.cpp
clang/tools/libclang/IndexDecl.cpp
clang/tools/libclang/IndexingContext.h