Page MenuHomeFreeBSD

Set AlignTrailingComments in the clang-format config
ClosedPublic

Authored by arichardson on Sep 10 2020, 1:38 PM.
Tags
None
Referenced Files
F137937334: D26391.diff
Thu, Nov 27, 11:08 AM
Unknown Object (File)
Fri, Nov 14, 10:33 PM
Unknown Object (File)
Fri, Nov 14, 10:20 PM
Unknown Object (File)
Tue, Nov 4, 7:49 PM
Unknown Object (File)
Sat, Nov 1, 11:25 AM
Unknown Object (File)
Fri, Oct 31, 7:01 AM
Unknown Object (File)
Wed, Oct 29, 12:46 PM
Unknown Object (File)
Wed, Oct 29, 12:06 PM
Subscribers
None

Details

Summary

This seems to be fairly common in existing code and often looks better when
adding trailing comments to e.g. enumerators or array initializers.
See D26340 for more context.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33484
Build 30760: arc lint + arc unit

Event Timeline

arichardson created this revision.

I'm curious how well this works in practice (i.e., it's often difficult to simultaneously address aligned comments and line length limits) but this is probably the right choice.

This revision is now accepted and ready to land.Sep 10 2020, 1:56 PM