From 6a4dab1134b10b432f69819018fef2044520e0ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Wed, 8 Jun 2022 13:11:51 +0200 Subject: [PATCH] Make sure clang-format doesn't reformat SPDX-License-Identifier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- _clang-format | 7 ++++--- 1 file 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