This is an archive of the discontinued LLVM Phabricator instance.

Lex: Don't try to recover as hard in malformed _Pragma
Needs ReviewPublic

Authored by majnemer on Aug 15 2014, 6:58 PM.

Details

Reviewers
rsmith
Summary

It's not particularly safe to lex a token if you don't know what it is.
_Pragma error recovery attempted to lex tokens without being sure what
they might be.

Diff Detail

Event Timeline

majnemer updated this revision to Diff 12577.Aug 15 2014, 6:58 PM
majnemer retitled this revision from to Lex: Don't try to recover as hard in malformed _Pragma.
majnemer updated this object.
majnemer added a reviewer: rsmith.
majnemer added a subscriber: Unknown Object (MLST).
rnk added a subscriber: rnk.Sep 22 2014, 2:14 PM

See Richard's mail on cfe-commits:

Can you include both an EOD test and an EOF test? Otherwise, LGTM.