[PATCH] D61217: Fix PCH skipping to handle all Lexers

2019-04-29 Thread Mike Rice via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC359506: When skipping code at the start of a file during PCH use, Preprocessor::Lex (authored by mikerice, committed by ). Herald added a project: clang. Repository: rC Clang CHANGES SINCE LAST ACTION

[PATCH] D61217: Fix PCH skipping to handle all Lexers

2019-04-29 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm, thanks! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D61217/new/ https://reviews.llvm.org/D61217 ___ cfe-commits mailing list cfe-commit

[PATCH] D61217: Fix PCH skipping to handle all Lexers

2019-04-26 Thread Mike Rice via Phabricator via cfe-commits
mikerice created this revision. mikerice added reviewers: rnk, cfe-commits. When skipping code at the start of a file during PCH use, Preprocessor::Lex is not used since it consumes all preprocessor directives until it returns a real token. Using the specific Lexer (i.e. CurLexer->Lex) makes it