]> granicus.if.org Git - clang/commit
When setting the globally-visible declarations for a particular
authorDouglas Gregor <dgregor@apple.com>
Fri, 24 Sep 2010 23:29:12 +0000 (23:29 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 24 Sep 2010 23:29:12 +0000 (23:29 +0000)
commit76dc8890b6c5223de80be8284adbfc63ceeb3a55
tree7a6a7d1605396f009c434359184d415f4c53e676
parent37bf9d2bb74944c9d9a52522412bc077629977f1
When setting the globally-visible declarations for a particular
identifier, we may have a Sema object but no translation unit scope
(because parsing is finished). In this case, we still need to update
the IdResolver, which might still be used when writing a PCH
containing another PCH (without chaining). This bug manifested as a
failure with precompiled preambles.

Also, add a little environment-variable-sensitive logging for
libclang.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/ASTUnit.cpp
lib/Serialization/ASTReader.cpp
test/Index/Inputs/a.h [new file with mode: 0644]
test/Index/Inputs/b.h [new file with mode: 0644]
test/Index/preamble-reparse-chained.c [new file with mode: 0644]