summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Welbourne <[email protected]>2025-05-27 12:57:07 +0200
committerEdward Welbourne <[email protected]>2025-06-05 08:48:30 +0000
commit5c055d0719a984b6db92f1b77ba299508960883d (patch)
tree3a52f2f1c83efd0e45e20d595eac10907d3da804
parent5fdc3b69617b391a004ce9196cf28fe3f06a9bc7 (diff)
Treat security headers as boring for the purposes of API change reviewHEADdev
Treat the new header as if it were part of the copyright header. Pick-to: 6.10 Task-number: QTBUG-135177 Change-Id: I6a21d0a966d05308a5d35641561c8c9287d8c03f Reviewed-by: Cristian Maureira-Fredes <[email protected]>
-rwxr-xr-xscripts/api-review/resetboring.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/api-review/resetboring.py b/scripts/api-review/resetboring.py
index 29f345b4..69225e6b 100755
--- a/scripts/api-review/resetboring.py
+++ b/scripts/api-review/resetboring.py
@@ -114,10 +114,17 @@ class Selector(object): # Select interesting changes, discard boring.
# scanning *this* file aren't mislead by them !
@staticmethod
def __end_copyright(seq, oldMarker='_'.join(('$QT', 'END', 'LICENSE$')),
- spdxHeader='-'.join(('SPDX', 'License', 'Identifier:'))):
- """Line number just after the end of the copyright banner"""
+ spdxHeader='-'.join(('SPDX', 'License', 'Identifier:')),
+ secHeader='-'.join(('Qt', 'Security'))):
+ """Line number just after the end of the copyright banner.
+
+ For these purposes, treat the security header as part of the banner. It
+ can be changed without affecting source or binary compatibility.
+ """
for i, line in enumerate(seq, 1):
if spdxHeader in line:
+ if i < len(seq) and secHeader in seq[i]:
+ return i + 1
return i
if oldMarker in line:
return i + 2