function_ref-ize ExternalASTSource::FindExternalLexicalDecl and remove its
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 5 Aug 2015 22:41:45 +0000 (22:41 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 5 Aug 2015 22:41:45 +0000 (22:41 +0000)
commit3cb15729aff241e28c9854bd09609fb74e7bac37
treea51bd54acbb78d140ec33b26f1779ad74c5bdf6e
parentae0d4365454456203a6f284c5d0e6ed994883c86
function_ref-ize ExternalASTSource::FindExternalLexicalDecl and remove its
useless return value. Switch to using it directly when completing the
redeclaration chain for an anonymous declaration, and reduce the set of
declarations that we load in the process to just those of the right kind.

llvm-svn: 244161
clang/include/clang/AST/ExternalASTSource.h
clang/include/clang/Sema/MultiplexExternalSemaSource.h
clang/include/clang/Serialization/ASTReader.h
clang/include/clang/Serialization/ModuleManager.h
clang/lib/AST/Decl.cpp
clang/lib/AST/DeclBase.cpp
clang/lib/AST/ExternalASTSource.cpp
clang/lib/Frontend/ChainedIncludesSource.cpp
clang/lib/Sema/MultiplexExternalSemaSource.cpp
clang/lib/Serialization/ASTReader.cpp