Fix an issue with writing to PCH another included PCH, introduced by the "using an...
commita812f2ff9e4b765646d8432357dc81388e6574d7
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Fri, 20 Aug 2010 23:35:55 +0000 (20 23:35 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Fri, 20 Aug 2010 23:35:55 +0000 (20 23:35 +0000)
treeb525703a897a120a17f7aa350ab66b0df0cbab33
parentd5ad6700859b4d8eb29e9f1b36f574451174c84c
Fix an issue with writing to PCH another included PCH, introduced by the "using an AST on-disk hash table for name lookup" commit.

When including a PCH and later re-emitting to another PCH, the name lookup tables of DeclContexts
may be incomplete, since we now lazily deserialize the visible decls of a particular name.
Fix the issue by iterating over the un-deserialized visible decls and completing the lookup tables
of DeclContexts before writing them out.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111698 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclBase.h
include/clang/AST/ExternalASTSource.h
include/clang/Serialization/ASTReader.h
lib/AST/DeclBase.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
test/PCH/reinclude.cpp [new file with mode: 0644]
test/PCH/reinclude1.h [new file with mode: 0644]
test/PCH/reinclude2.h [new file with mode: 0644]