mirror of
https://github.com/Z3Prover/z3
synced 2026-08-03 04:33:28 +00:00
Use macros to disable semi-colon warnings for blocks of macros. (#10192)
This is another PR towards the goal of getting Z3 to compile cleanly when included via FetchContents into clang-tidy, which uses a pretty strict set of warnings. This PR completes the job started by https://github.com/Z3Prover/z3/pull/10169. It adds `-Wextra-semi` to the set of CLANG_ONLY_WARNINGS, and adds ``` START_DISABLE_EXTRA_SEMI_WARNING; ...macro invocations with trailing semis... END_DISABLE_WARNING; ``` around all the blocks of macro invocations that provoked warnings. (Additionally, in realclosure.h, there was one block of macro invocations that did *not* follow the trailing-semi pattern; changed that to look like all the others).
This commit is contained in:
parent
f8f763bdf1
commit
35b0b42d2e
25 changed files with 107 additions and 5 deletions
|
|
@ -346,6 +346,7 @@ public:
|
|||
is_pi(n);
|
||||
}
|
||||
|
||||
START_DISABLE_EXTRA_SEMI_WARNING;
|
||||
MATCH_UNARY(is_uminus);
|
||||
MATCH_UNARY(is_to_real);
|
||||
MATCH_UNARY(is_to_int);
|
||||
|
|
@ -378,6 +379,7 @@ public:
|
|||
MATCH_UNARY(is_tan);
|
||||
MATCH_UNARY(is_atan);
|
||||
MATCH_UNARY(is_atanh);
|
||||
END_DISABLE_WARNING;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue