This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Fix BreakBeforeBinaryOperators with TemplateCloser on the lhs
ClosedPublic

Authored by HazardyKnusperkeks on Feb 26 2022, 12:18 PM.

Details

Summary

The check for TT_templateCloser was done first and prevented any line breaks. Rearrange the statements a bit.

Fixes https://github.com/llvm/llvm-project/issues/54057

Diff Detail

Event Timeline

HazardyKnusperkeks requested review of this revision.Feb 26 2022, 12:18 PM
HazardyKnusperkeks created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 26 2022, 12:18 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
curdeius accepted this revision.Feb 26 2022, 1:54 PM

Great! Please fix formatting before landing.

This revision is now accepted and ready to land.Feb 26 2022, 1:54 PM
owenpan accepted this revision.Feb 27 2022, 2:09 AM
This revision was landed with ongoing or failed builds.Mar 1 2022, 12:55 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2022, 12:55 PM