summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/preamble-conditionals-inverted.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [preamble] Also record the "skipping" state of the preprocessorErik Verbruggen2017-11-031-1/+3
| | | | | | | | | | 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. llvm-svn: 317308
* Fix recording preamble's conditional stack in skipped PP branches.Ilya Biryukov2017-09-121-0/+8
Summary: This fixes PR34547. `Lexer::LexEndOfFile` handles recording of ConditionalStack for preamble and reporting errors about unmatched conditionalal PP directives. However, SkipExcludedConditionalBlock contianed duplicated logic for reporting errors and clearing ConditionalStack, but not for preamble recording. This fix removes error reporting logic from `SkipExcludedConditionalBlock`, unmatched PP conditionals are now reported inside `Lexer::LexEndOfFile`. Reviewers: erikjv, klimek, bkramer Reviewed By: erikjv Subscribers: nik, cfe-commits Differential Revision: https://reviews.llvm.org/D37700 llvm-svn: 313014
OpenPOWER on IntegriCloud