]> granicus.if.org Git - clang/commit
Simplify FindExternalVisibleDeclsByName by making it return a bool indicating
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 7 Feb 2013 03:30:24 +0000 (03:30 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 7 Feb 2013 03:30:24 +0000 (03:30 +0000)
commit3646c68676c3c46a026b23d52188ef6e0d856178
treee95e24d1132aca61782501a9c433cfbce948dc43
parent878d0ad2c9d83ee6485fd16e21c5082acc63a890
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!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174576 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ExternalASTSource.h
include/clang/Frontend/ChainedIncludesSource.h
include/clang/Sema/MultiplexExternalSemaSource.h
include/clang/Serialization/ASTReader.h
lib/AST/DeclBase.cpp
lib/AST/ExternalASTSource.cpp
lib/Frontend/ChainedIncludesSource.cpp
lib/Sema/MultiplexExternalSemaSource.cpp
lib/Serialization/ASTReader.cpp