Page MenuHomeFreeBSD

Set AlignTrailingComments in the clang-format config
ClosedPublic

Authored by arichardson on Sep 10 2020, 1:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 21, 8:26 AM
Unknown Object (File)
Sat, Oct 19, 12:12 PM
Unknown Object (File)
Oct 5 2024, 9:59 PM
Unknown Object (File)
Oct 2 2024, 7:38 PM
Unknown Object (File)
Oct 2 2024, 2:25 PM
Unknown Object (File)
Oct 2 2024, 6:25 AM
Unknown Object (File)
Oct 2 2024, 5:34 AM
Unknown Object (File)
Oct 1 2024, 9:12 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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