[PATCH] D38578: [preamble] Also record the "skipping" state of the preprocessor

Erik Verbruggen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 5 03:53:27 PDT 2017


erikjv created this revision.

When a preamble ends in a conditional preprocessor block that is being
skipped, the preprocessor needs to continue skipping that block when
the preamble is used.

This fixes PR34570.


https://reviews.llvm.org/D38578

Files:
  include/clang/Lex/Preprocessor.h
  lib/Lex/PPDirectives.cpp
  lib/Lex/Preprocessor.cpp
  lib/Serialization/ASTReader.cpp
  lib/Serialization/ASTWriter.cpp
  test/Index/preamble-conditionals-inverted.cpp
  test/Index/preamble-conditionals-skipping.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38578.117793.patch
Type: text/x-patch
Size: 10753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171005/756e26a5/attachment.bin>


More information about the cfe-commits mailing list