summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2023-08-10 12:01:09 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2023-08-28 12:40:50 +0000
commit5eb547fab9e7807d1533023dca5ba6ee2583b74f (patch)
treede539cfe6d8f81d37224736abe72bdfb2408f8b9
parent2c48d0cca65a5b972000179a672e26166638c9ba (diff)
Also nag about enum deprecation adjustments
The nag about deprecation adjustments missed out on Q_DECL_ENUMERATOR_DEPRECATED and its _X() variant. These are used raw, instead of via a config-controlled macro. Include them, at least until we sort out a suitable intermediary. Change-Id: Ifde903bde61d8875653c8b4b1b6d5d8ce714ed94 Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
-rwxr-xr-xgit-hooks/sanitize-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit
index 429470b..b8faf1a 100755
--- a/git-hooks/sanitize-commit
+++ b/git-hooks/sanitize-commit
@@ -931,7 +931,7 @@ while (<DIFF>) {
}
# Don't grumble about the #if-ery around deprecations (or the #defines
# of the deprecation macros), only about the deprecations themselves.
- if (!/^\h*#/ && /\bQT_DEPRECATED_/) {
+ if (!/^\h*#/ && /\bQ(T|_DECL_ENUMERATOR)_DEPRECATED_/) {
complain_ln("Deprecation adjustments already submitted?", "", -1);
}
# Check for extraneous semicolon after macros.