aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2020-09-10 14:11:29 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2020-09-10 14:11:29 +0000
commit22a39a89129067ab2d3edd486f159ee668b52394 (patch)
treeb3340a9c7ed8914cbf1817e52ca80dc054dcc367
parent8efceeb6ac90d58b19b04fa7900ed45659b82f2b (diff)
downloadsrc-22a39a89129067ab2d3edd486f159ee668b52394.tar.gz
src-22a39a89129067ab2d3edd486f159ee668b52394.zip
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
Notes
Notes: svn path=/head/; revision=365576
-rw-r--r--.clang-format2
1 files changed, 1 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format
index 379ae2a98a98..480affab5722 100644
--- a/.clang-format
+++ b/.clang-format
@@ -7,7 +7,7 @@ AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: false
-AlignTrailingComments: false
+AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false