summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/chain-macro-override.c
Commit message (Collapse)AuthorAgeFilesLines
* Rework the (de-)serialization of macros, as stored inDouglas Gregor2012-10-091-0/+2
| | | | | | | | | | | | | | | | MacroInfo*. Instead of simply dumping an offset into the current file, give each macro definition a proper ID with all of the standard modules-remapping facilities. Additionally, when a macro is modified in a subsequent AST file (e.g., #undef'ing a macro loaded from another module or from a precompiled header), provide a macro update record rather than rewriting the entire macro definition. This gives us greater consistency with the way we handle declarations, and ties together macro definitions much more cleanly. Note that we're still not actually deserializing macro history (we never were), but it's far easy to do properly now. llvm-svn: 165560
* Eliminate the -chained-pch flag and all of the frontend and libclang options ↵Douglas Gregor2011-08-251-1/+1
| | | | | | associated with it. Chained PCH is the only way to build a PCH file that includes another PCH file llvm-svn: 138597
* Implement chained PCH support for the macro definitions stored withinDouglas Gregor2010-10-021-3/+3
| | | | | | the "detailed" preprocessing record. llvm-svn: 115417
* When an identifier that has a macro definition in the original PCHDouglas Gregor2010-10-011-1/+2
| | | | | | | file is somehow changed in a chained PCH file, make sure that we write out the macro definition. Fixes part of <rdar://problem/8499034>. llvm-svn: 115259
* Make macro weirdness in chained PCH work. This required changing the way ↵Sebastian Redl2010-07-301-0/+13
PCHReader and PCHWriter are initialized to correctly pick up all initializer. On the upside, this means that there is far less repetition in the dependent PCH now. llvm-svn: 109823
OpenPOWER on IntegriCloud