]> granicus.if.org Git - clang/commit
Extend ExternalASTSource with the ability to lazily complete the
authorDouglas Gregor <dgregor@apple.com>
Wed, 1 Dec 2010 23:49:52 +0000 (23:49 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 1 Dec 2010 23:49:52 +0000 (23:49 +0000)
commit26ac3f30ecef21749c00a4b1a08dd15d772dd5aa
tree26f58f160501bd478a14058ed0e2981880afc1ba
parent1ceee5c42d5c410217f67d384eecc6ea4a2bba9b
Extend ExternalASTSource with the ability to lazily complete the
definition of an Objective-C class. Unlike with C/C++ classes, we
don't have a well-defined point in Sema where Objective-C classes are
checked for completeness, nor do we need to involve Sema when
completing a class. Therefore, we take the appropriate of having the
external AST source mark a particular Objective-C class as having an
external declaration; when using one of the accessors of an
Objective-C class that has an external declaration, we request that
the external AST source fill in the Objective-C class definition.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120627 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclObjC.h
include/clang/AST/ExternalASTSource.h
lib/AST/DeclObjC.cpp