summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ChainedIncludesSource.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-07-15 21:46:17 +0000
committerDouglas Gregor <dgregor@apple.com>2011-07-15 21:46:17 +0000
commit3d0adb3201ebdaedcec8d7eecc445df5eb649ae6 (patch)
tree62fc9eef5fb5215fd9ab120dca340f90d44c6f7a /clang/lib/Serialization/ChainedIncludesSource.cpp
parentad94608b1f9bd8857f8210a8ab33c1fa0f1aaf8d (diff)
downloadbcm5719-llvm-3d0adb3201ebdaedcec8d7eecc445df5eb649ae6.tar.gz
bcm5719-llvm-3d0adb3201ebdaedcec8d7eecc445df5eb649ae6.zip
Augment the interface of ExternalASTSource::FindExternalLexicalDecls()
to allow clients to specify that they've already (correctly) loaded declarations, and that no further action is needed. Also, make sure that we clear the "has external lexical declarations" bit before calling FindExternalLexicalDecls(), to avoid infinite recursion. llvm-svn: 135306
Diffstat (limited to 'clang/lib/Serialization/ChainedIncludesSource.cpp')
-rw-r--r--clang/lib/Serialization/ChainedIncludesSource.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ChainedIncludesSource.cpp b/clang/lib/Serialization/ChainedIncludesSource.cpp
index da5be957a53..3b7cd23b92a 100644
--- a/clang/lib/Serialization/ChainedIncludesSource.cpp
+++ b/clang/lib/Serialization/ChainedIncludesSource.cpp
@@ -185,7 +185,8 @@ ChainedIncludesSource::FindExternalVisibleDeclsByName(const DeclContext *DC,
void ChainedIncludesSource::MaterializeVisibleDecls(const DeclContext *DC) {
return getFinalReader().MaterializeVisibleDecls(DC);
}
-bool ChainedIncludesSource::FindExternalLexicalDecls(const DeclContext *DC,
+ExternalLoadResult
+ChainedIncludesSource::FindExternalLexicalDecls(const DeclContext *DC,
bool (*isKindWeWant)(Decl::Kind),
llvm::SmallVectorImpl<Decl*> &Result) {
return getFinalReader().FindExternalLexicalDecls(DC, isKindWeWant, Result);
OpenPOWER on IntegriCloud