This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Fix weird handling of AfterColon
ClosedPublic

Authored by HazardyKnusperkeks on Aug 22 2023, 4:20 AM.

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptAug 22 2023, 4:20 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
HazardyKnusperkeks requested review of this revision.Aug 22 2023, 4:20 AM
HazardyKnusperkeks added inline comments.
clang/unittests/Format/FormatTest.cpp
7993–7994

I know we usually don't change existing tests. But I sincerely think this a bug. From the documentation I don't see any reason why there should be a line break.

owenpan accepted this revision.Aug 23 2023, 12:50 AM
owenpan added inline comments.
clang/unittests/Format/FormatTest.cpp
7954

loooooooooooooooooooong?

7993–7997

Shorten the ctor name so that we don't have to split the line.

This revision is now accepted and ready to land.Aug 23 2023, 12:50 AM
HazardyKnusperkeks marked 2 inline comments as done.Aug 23 2023, 3:45 AM

Will be fixed on commit.

This revision was landed with ongoing or failed builds.Aug 23 2023, 11:34 PM
This revision was automatically updated to reflect the committed changes.