]> granicus.if.org Git - clang/commit
Allow some differences between the predefines buffer used to build a
authorDouglas Gregor <dgregor@apple.com>
Tue, 28 Apr 2009 18:58:38 +0000 (18:58 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 28 Apr 2009 18:58:38 +0000 (18:58 +0000)
commite721f95069d42b899c20c1caabdc6184dd42b820
tree37eefbaf65838db15d7d8432788784c4463ab9b7
parentb77f41e66f736e9e67a9d39c47c747804b22c6b9
Allow some differences between the predefines buffer used to build a
PCH file and the predefines buffer used when including the PCH
file. We (explicitly) detect conflicting macro definitions (rejecting
the PCH file) and about missing macro definitions (they'll be
automatically pulled from the PCH file anyway).

We're missing some checking to make sure that new macro definitions
won't have any impact on the PCH file itself (e.g., #define'ing an
identifier that the PCH file used).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70316 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticFrontendKinds.td
include/clang/Frontend/PCHReader.h
lib/Frontend/PCHReader.cpp
test/PCH/fuzzy-pch.c [new file with mode: 0644]
test/PCH/fuzzy-pch.h [new file with mode: 0644]
tools/clang-cc/clang-cc.cpp