[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)
commitb60f1b6d3debbbdbcd057d763fbef7e2492718a3
tree33481cdd9f976cbb15d616dee5153473fd7aee87
parentbbe81f2d5560cb93b89ae88cf5f4b0864c50c440
[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

llvm-svn: 322503
clang/include/clang/Lex/PreprocessingRecord.h
clang/include/clang/Serialization/ASTBitCodes.h
clang/include/clang/Serialization/ASTReader.h
clang/include/clang/Serialization/Module.h
clang/lib/Lex/PPDirectives.cpp
clang/lib/Lex/PreprocessingRecord.cpp
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/tools/libclang/CIndex.cpp
clang/unittests/libclang/LibclangTest.cpp