diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-12 18:09:38 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-12 18:09:38 +0000 |
commit | 26d43cd3a088d4f1f1645328db3b73afbc7eaa61 (patch) | |
tree | 1d8b4de694666f82a9491ec517b2450ae230f466 /test/Index/preamble-reparse-cmd-define.c.h | |
parent | 40098e8cd7268535ba581b50af0304b7ecacbef5 (diff) |
[libclang] In ASTUnit::Parse copy the CompilerInvocation object instead of
modifying directly for the preamble.
This avoids an awful, hard to find, bug where "PreprocessorOpts.DisablePCHValidation = true"
would be persistent for subsequent reparses of the translation unit which would result
in defines, present in command-line but not in the PCH, being ignored.
Fixes rdar://9615399.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/preamble-reparse-cmd-define.c.h')
-rw-r--r-- | test/Index/preamble-reparse-cmd-define.c.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Index/preamble-reparse-cmd-define.c.h b/test/Index/preamble-reparse-cmd-define.c.h new file mode 100644 index 0000000000..2497af651c --- /dev/null +++ b/test/Index/preamble-reparse-cmd-define.c.h @@ -0,0 +1 @@ +extern int x; |