summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExternalASTSource.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-02-07 03:30:24 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-02-07 03:30:24 +0000
commit9ce12e36abf44b6373b88610f3c73fbbbdee9b36 (patch)
tree252cae5664a20d1ce68c51dc63bf82c4d0dd5ce2 /clang/lib/AST/ExternalASTSource.cpp
parentc121b9b796e40f2eec2aabebb4dfcabe2f21537f (diff)
downloadbcm5719-llvm-9ce12e36abf44b6373b88610f3c73fbbbdee9b36.tar.gz
bcm5719-llvm-9ce12e36abf44b6373b88610f3c73fbbbdee9b36.zip
Simplify FindExternalVisibleDeclsByName by making it return a bool indicating
if it found any decls, rather than returning a list of found decls. This removes a returning-ArrayRef-to-deleted-storage bug from MultiplexExternalSemaSource (in code not exercised by any of the clang binaries), reduces the work required in the found-no-decls case with PCH, and importantly removes the need for DeclContext::lookup to be reentrant. No functionality change intended! llvm-svn: 174576
Diffstat (limited to 'clang/lib/AST/ExternalASTSource.cpp')
-rw-r--r--clang/lib/AST/ExternalASTSource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ExternalASTSource.cpp b/clang/lib/AST/ExternalASTSource.cpp
index 6b9fe26ccc9..96ebe92ce3a 100644
--- a/clang/lib/AST/ExternalASTSource.cpp
+++ b/clang/lib/AST/ExternalASTSource.cpp
@@ -43,10 +43,10 @@ ExternalASTSource::GetExternalCXXBaseSpecifiers(uint64_t Offset) {
return 0;
}
-DeclContextLookupResult
+bool
ExternalASTSource::FindExternalVisibleDeclsByName(const DeclContext *DC,
DeclarationName Name) {
- return DeclContext::lookup_result();
+ return false;
}
void ExternalASTSource::completeVisibleDeclsMap(const DeclContext *DC) {
OpenPOWER on IntegriCloud