From 897d609dadedbbb3abaa7640a83717080cf4ccfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Tue, 25 Aug 2026 09:48:35 +0200 Subject: [PATCH] _clang-format: Suppress false-positive SPDX tag in CommentPragmas The CommentPragmas regex references the literal string "SPDX-License-Identifier:" to tell clang-format not to reflow lines carrying that tag. reuse-tool 6.0+ scans whole files (not just the first 4 KiB) and its "Invalid SPDX License Expressions" check now misparses this regex fragment as a real, malformed tag for the file. Mark it with REUSE-IgnoreStart/End, the same fix already applied to qtqa's tst_licenses.pl for the identical false positive. Pick-to: 6.12 Task-number: QTBUG-149427 Task-number: QTBUG-140916 Change-Id: I047cff90d7c43ece8af23863ec6f3a06d8bf23fd Reviewed-by: Joerg Bornemann --- _clang-format | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_clang-format b/_clang-format index cc36c738..6c8db4c1 100644 --- a/_clang-format +++ b/_clang-format @@ -21,7 +21,9 @@ ColumnLimit: 100 # Disable reflow of some specific comments # qdoc comments: indentation rules are different. # Translation comments and SPDX license identifiers are also excluded. +# REUSE-IgnoreStart CommentPragmas: "^!|^:|^ SPDX-License-Identifier:" +# REUSE-IgnoreEnd # We want a space between the type and the star for pointer types. PointerBindsToType: false