This is an archive of the discontinued LLVM Phabricator instance.

clang-format: Fix merging of << at end of input.
ClosedPublic

Authored by jpienaar on Feb 19 2015, 10:55 AM.

Details

Reviewers
djasper
Summary

Fix the way merging of LessLess is performed at the end of input. r229783 merged <,< in an incorrect manner at the end of input. This resulted in assert failures (found by fuzzer bot).

Diff Detail

Event Timeline

jpienaar updated this revision to Diff 20319.Feb 19 2015, 10:55 AM
jpienaar retitled this revision from to clang-format: Fix merging of << at end of input..
jpienaar updated this object.
jpienaar edited the test plan for this revision. (Show Details)
jpienaar added a reviewer: djasper.
jpienaar added subscribers: Unknown Object (MLST), kcc.
djasper accepted this revision.Feb 19 2015, 2:55 PM
djasper edited edge metadata.

Looks good.

lib/Format/Format.cpp
666

Maybe call this FourthTokenIsLess.

This revision is now accepted and ready to land.Feb 19 2015, 2:55 PM
djasper closed this revision.Apr 12 2015, 1:24 AM