diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-06-08 13:11:51 +0200 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2022-06-14 08:33:07 +0200 |
commit | 6a4dab1134b10b432f69819018fef2044520e0ca (patch) | |
tree | 1cee43f84e281e2f98397f41747cbdb013c18c02 /_clang-format | |
parent | 895475d6f24c43c2a890144c6c2e06e2174892e9 (diff) |
Make sure clang-format doesn't reformat SPDX-License-Identifier
SPDX-License-Identifier needs to stay on one line to be machine
readable, even if this goes above the 100 chars limit.
Pick-to: 6.4
Change-Id: I2cc3d556e30e8d169224cc87a97a2042b47e43f7
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to '_clang-format')
-rw-r--r-- | _clang-format | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/_clang-format b/_clang-format index df3b54e4..19d2e364 100644 --- a/_clang-format +++ b/_clang-format @@ -20,9 +20,10 @@ ColumnLimit: 100 # How much weight do extra characters after the line length limit have. # PenaltyExcessCharacter: 4 -# Disable reflow of qdoc comments: indentation rules are different. -# Translation comments are also excluded. -CommentPragmas: "^!|^:" +# Disable reflow of some specific comments +# qdoc comments: indentation rules are different. +# Translation comments and SPDX license identifiers are also excluded. +CommentPragmas: "^!|^:|^ SPDX-License-Identifier:" # We want a space between the type and the star for pointer types. PointerBindsToType: false |