This is an archive of the discontinued LLVM Phabricator instance.

[clang][PreProcessor] Cutoff parsing after hitting completion point
ClosedPublic

Authored by kadircet on May 7 2021, 6:27 AM.

Details

Diff Detail

Event Timeline

kadircet requested review of this revision.May 7 2021, 6:27 AM
kadircet created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 7 2021, 6:27 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hokein added inline comments.May 9 2021, 11:47 PM
clang/lib/Lex/PPDirectives.cpp
3026

evulating => evaluating

IIUC, CurPPLexer may be reset to nullptr after the above EvaluateDirectiveExpression call? If so, I think there is another place having the same pattern, line 597 of this file.

kadircet updated this revision to Diff 343993.May 10 2021, 1:18 AM
  • Fix typo in comment
  • Handle the \#elif case too.
kadircet updated this revision to Diff 343996.May 10 2021, 1:19 AM
  • Fix lit
hokein accepted this revision.May 10 2021, 1:56 AM

thanks!

This revision is now accepted and ready to land.May 10 2021, 1:56 AM
This revision was landed with ongoing or failed builds.May 10 2021, 2:31 AM
This revision was automatically updated to reflect the committed changes.