aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-07-22 23:46:03 +0000
committerSean Callanan <scallanan@apple.com>2011-07-22 23:46:03 +0000
commit8cc4fd795e01d50a7a7c96f4c0356d23b00d9349 (patch)
treefab10ee5b17a4b69f7680250e0c482037d46a1d5 /lib/Frontend/CompilerInstance.cpp
parentcfe1bcb440ef2fde5e0df6e07a5abbeee089e6e7 (diff)
This patch (thanks to Doug Gregor) fixes a
problem where Clang was setting the hasExternalVisibleDecls() bit for all DeclContexts it imported. This caused Clang to make unnecessary calls to findExternalVisibleDecls() when an external AST source was installed. In fact, Clang sometimes interpreted a failure by one of these spurious calls to find a Decl as meaning the Decl didn't exist, even though findExternalLexicalDecls() did locate that decl. This produced amusing errors of the form: - error: no member named 'b' in 'A'; did you mean 'b'? - Now, if hasExternalVisibleDecls() or hasExternalLexicalDecls() should be set, the external AST source must do so itself. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions