summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Smith <daniel.smith@qt.io>2023-01-24 11:18:20 +0100
committerDaniel Smith <Daniel.Smith@qt.io>2023-02-07 09:14:04 +0000
commit00464833e2fae20eaa9905a8a5db3d5542a2571a (patch)
tree78a190ba44a17ccb8d6d45cb19cd167aaae47694
parent0a526b66db15e870d0d8a7f122217a1ee7647d3d (diff)
downloadqtrepotools-00464833e2fae20eaa9905a8a5db3d5542a2571a.tar.gz
Add a check for QT_DEPRECATED macros
If a QT_DEPRECATED macro is added anywhere, the uploader should be reminded to also provide patches which update usages of the deprecated function. Task-number: QTQAINFRA-5376 Change-Id: Ie232e54e123da0060a854dedbeecd276322e3410 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rwxr-xr-xgit-hooks/sanitize-commit3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit
index 3af3426..98741c9 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -869,6 +869,9 @@ while (<DIFF>) {
if (/\xe2(\x80[\xaa-\xae]|\x81[\xa6-\xa9])/ || /[\x{202A}-\x{202E}\x{2066}-\x{2069}]/) {
complain_ln("Unicode bi-directional override characters", "bidi", 1)
}
+ if (/QT_(?:DISABLE_)?DEPRECATED_/) {
+ complain_ln("Deprecation adjustments already submitted?", "", -1);
+ }
} else {
flushChunk() if ($chunk);
if (/^ /) {