diff options
author | Sean Callanan <scallanan@apple.com> | 2014-12-10 03:09:41 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2014-12-10 03:09:41 +0000 |
commit | 49475327fffdfb4cde572b5955d7d94d801d84bf (patch) | |
tree | d2a9c97944cea5d0004522366dc59051a8894071 /clang/lib/Lex/HeaderSearch.cpp | |
parent | 612f31284e423904d3afa255ed20ac36f2a1e010 (diff) | |
download | llvm-49475327fffdfb4cde572b5955d7d94d801d84bf.zip llvm-49475327fffdfb4cde572b5955d7d94d801d84bf.tar.gz llvm-49475327fffdfb4cde572b5955d7d94d801d84bf.tar.bz2 |
Fixed the AST importer ot use redeclaration contexts properly.
To ensure that we don't import duplicates, the ASTImporter often
checks the DeclContext for a Decl before importing it to see if
a Decl with the same name is already present.
This is problematic if the Decl is inside a transparent context
like an extern "C" block. Lookup isn't allowed on such contexts,
and in fact they assert() if you do that. So instead we look at
the redeclaration context -- the containing context that can be
used safely for these kinds of checks -- instead.
llvm-svn: 223912
Diffstat (limited to 'clang/lib/Lex/HeaderSearch.cpp')
0 files changed, 0 insertions, 0 deletions