diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2020-09-10 14:11:29 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2020-09-10 14:11:29 +0000 |
commit | 22a39a89129067ab2d3edd486f159ee668b52394 (patch) | |
tree | b3340a9c7ed8914cbf1817e52ca80dc054dcc367 /.clang-format | |
parent | 8efceeb6ac90d58b19b04fa7900ed45659b82f2b (diff) | |
download | src-test2-22a39a89129067ab2d3edd486f159ee668b52394.tar.gz src-test2-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
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 2 |
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 |