diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2023-08-10 12:01:09 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-08-28 12:40:50 +0000 |
commit | 5eb547fab9e7807d1533023dca5ba6ee2583b74f (patch) | |
tree | de539cfe6d8f81d37224736abe72bdfb2408f8b9 | |
parent | 2c48d0cca65a5b972000179a672e26166638c9ba (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-x | git-hooks/sanitize-commit | 2 |
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. |