[PATCH] D15994: Allow for unfinished #if blocks in preambles.

Erik Verbruggen via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 5 07:33:17 PDT 2016


erikjv updated the summary for this revision.
erikjv updated this revision to Diff 62748.
erikjv added a comment.

This version stores/loads the conditional stack in the preprocessor the the generated pch file. It suppresses errors about unfinished conditional preprocessor blocks, and after restoring, it will check if the block is closed in the main file.


http://reviews.llvm.org/D15994

Files:
  include/clang/Lex/Preprocessor.h
  include/clang/Lex/PreprocessorLexer.h
  include/clang/Lex/PreprocessorOptions.h
  include/clang/Serialization/ASTBitCodes.h
  lib/Frontend/ASTUnit.cpp
  lib/Lex/Lexer.cpp
  lib/Lex/PPLexerChange.cpp
  lib/Lex/Preprocessor.cpp
  lib/Serialization/ASTReader.cpp
  lib/Serialization/ASTWriter.cpp
  test/Lexer/preamble.c
  test/Lexer/preamble2.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15994.62748.patch
Type: text/x-patch
Size: 10148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160705/6f56eb1b/attachment-0001.bin>


More information about the cfe-commits mailing list