This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Don't misannotate in CTor init list
ClosedPublic

Authored by HazardyKnusperkeks on Oct 24 2022, 1:31 PM.

Details

Summary

They were annotated with TrailingAnnotation, which they are not. And that resulted in some quirky formatting in some cases.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2022, 1:31 PM
HazardyKnusperkeks requested review of this revision.Oct 24 2022, 1:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 24 2022, 1:31 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
owenpan accepted this revision.Oct 24 2022, 8:47 PM
owenpan added inline comments.
clang/unittests/Format/TokenAnnotatorTest.cpp
1142–1144

Maybe instead (or in addition), check the tokens after the comma?

This revision is now accepted and ready to land.Oct 24 2022, 8:47 PM
HazardyKnusperkeks marked an inline comment as done.
owenpan accepted this revision.Oct 26 2022, 9:16 PM
MyDeveloperDay accepted this revision.Oct 30 2022, 5:25 AM
This revision was landed with ongoing or failed builds.Nov 3 2022, 5:09 AM
This revision was automatically updated to reflect the committed changes.