Limit deprecation adjustments grumble


Where developers deprecate things we want to remind them that they
have a duty to sort out all existing Qt code that exercises the
newly-deprecated API. However, we were producing the same warning also
for the #if-ery around blocks of deprecations (which doesn't need it,
as the deprecations within will get it) and for the additions of new
version-specific deprecation defines. These can be distinguished as
preprocessor directives - specifically #if and #define, although #else
or #endif may also have a comment on it echoing #if's condition.

So skip this check on all preprocessor commands, so we only grumble
where the macros are used to deprecate declarations.

Change-Id: Ie296d81a932bd098c54f9e166f3b0609c4af34fd
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
commit2c48d0cca65a5b972000179a672e26166638c9ba
parente6f2e023492d3ded8ebeca331670bfc907dbd2fb
authorEdward Welbourne <edward.welbourne@qt.io>
committerEdward Welbourne <edward.welbourne@qt.io>
commit timeThu, 24 Aug 2023 13:00:57 +0000