mirror of
https://github.com/Z3Prover/z3
synced 2026-06-23 09:00:30 +00:00
Use "override" keyword where needed. (#9892)
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. The PR adds ``` "-Wsuggest-override" "-Winconsistent-missing-override" ``` to the CLANG_ONLY_WARNINGS. This exposes a relatively small number of places where method overrides did not use the "override" keyword. The PR fixes those. (In cmd_util.h, I also made the *_CMD macros be uniform in not ending the class they define with a semicolon; the invocation of the macro can add the semicolon.)
This commit is contained in:
parent
cf9e39f775
commit
72973b00eb
5 changed files with 59 additions and 38 deletions
|
|
@ -20,6 +20,9 @@ set(CLANG_ONLY_WARNINGS
|
|||
"-Wno-c++98-compat"
|
||||
"-Wno-c++98-compat-pedantic"
|
||||
"-Wno-zero-length-array"
|
||||
"-Wc99-extensions"
|
||||
"-Wsuggest-override"
|
||||
"-Winconsistent-missing-override"
|
||||
)
|
||||
set(MSVC_WARNINGS "/W3")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue