]> granicus.if.org Git - clang/commit
[PCH] Serialize skipped preprocessor ranges
authorCameron Desrochers <cameron@moodycamel.com>
Mon, 15 Jan 2018 19:14:16 +0000 (19:14 +0000)
committerCameron Desrochers <cameron@moodycamel.com>
Mon, 15 Jan 2018 19:14:16 +0000 (19:14 +0000)
commit505903c4d00516897e296b023bc1b9b3b3db31fc
treed8bd5fe635d93b5b7963aac107dd50f22943269a
parentc4a6d8a835497ca48da7b5945ee12d53aae53ce3
[PCH] Serialize skipped preprocessor ranges

The skipped preprocessor ranges are now serialized in the AST PCH file. This fixes, for example, libclang's clang_getSkippedRanges() returning zero ranges after reparsing a translation unit.

Differential Revision: https://reviews.llvm.org/D20124

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322503 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/PreprocessingRecord.h
include/clang/Serialization/ASTBitCodes.h
include/clang/Serialization/ASTReader.h
include/clang/Serialization/Module.h
lib/Lex/PPDirectives.cpp
lib/Lex/PreprocessingRecord.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp
tools/libclang/CIndex.cpp
unittests/libclang/LibclangTest.cpp