diff options
author | Daniel Smith <daniel.smith@qt.io> | 2023-01-24 11:18:20 +0100 |
---|---|---|
committer | Daniel Smith <Daniel.Smith@qt.io> | 2023-02-07 09:14:04 +0000 |
commit | 00464833e2fae20eaa9905a8a5db3d5542a2571a (patch) | |
tree | 78a190ba44a17ccb8d6d45cb19cd167aaae47694 | |
parent | 0a526b66db15e870d0d8a7f122217a1ee7647d3d (diff) | |
download | qtrepotools-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-x | git-hooks/sanitize-commit | 3 |
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 (/^ /) { |