This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Fix a bug in inserting braces at trailing comments
ClosedPublic

Authored by owenpan on Aug 29 2022, 6:33 PM.

Details

Summary

If the style wraps control statement braces, the opening braces should be inserted after the trailing comments if present.

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

Diff Detail

Event Timeline

owenpan created this revision.Aug 29 2022, 6:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2022, 6:33 PM
owenpan requested review of this revision.Aug 29 2022, 6:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2022, 6:33 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Aug 30 2022, 12:39 PM