mirror of
git://code.qt.io/qt/qt5.git
synced 2026-09-23 17:06:53 +08:00
_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 <[email protected]>
This commit is contained in:
committed by
Alexandru Croitor
parent
26a7125a2c
commit
897d609dad
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user