svn commit: r365576 - head

Alex Richardson arichardson at FreeBSD.org
Thu Sep 10 14:11:32 UTC 2020


Author: arichardson
Date: Thu Sep 10 14:11:29 2020
New Revision: 365576
URL: https://svnweb.freebsd.org/changeset/base/365576

Log:
  Set AlignTrailingComments in the clang-format config
  
  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.
  
  Reviewed By:	emaste
  Differential Revision: https://reviews.freebsd.org/D26391

Modified:
  head/.clang-format   (contents, props changed)

Modified: head/.clang-format
==============================================================================
--- head/.clang-format	Thu Sep 10 14:11:24 2020	(r365575)
+++ head/.clang-format	Thu Sep 10 14:11:29 2020	(r365576)
@@ -7,7 +7,7 @@ AlignConsecutiveAssignments: false
 AlignConsecutiveDeclarations: false
 AlignEscapedNewlines: Left
 AlignOperands: false
-AlignTrailingComments: false
+AlignTrailingComments: true
 AllowAllParametersOfDeclarationOnNextLine: false
 AllowShortBlocksOnASingleLine: Never
 AllowShortCaseLabelsOnASingleLine: false


More information about the svn-src-all mailing list