CMakeLists: Add Clang's Specific WShadow Diagnostics

For parity with GCC.
This commit is contained in:
mitaclaw 2024-03-08 12:01:44 -08:00
parent 8f6fd912f7
commit f71f2c6ba1
1 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,8 @@ else()
check_and_add_flag(UNINITIALIZED -Wuninitialized) check_and_add_flag(UNINITIALIZED -Wuninitialized)
check_and_add_flag(LOGICAL_OP -Wlogical-op) check_and_add_flag(LOGICAL_OP -Wlogical-op)
check_and_add_flag(SHADOW -Wshadow) check_and_add_flag(SHADOW -Wshadow)
check_and_add_flag(SHADOW_FIELD_IN_CONSTRUCTOR -Wshadow-field-in-constructor)
check_and_add_flag(SHADOW_UNCAPTURED_LOCAL -Wshadow-uncaptured-local)
check_and_add_flag(INIT_SELF -Winit-self) check_and_add_flag(INIT_SELF -Winit-self)
check_and_add_flag(MISSING_DECLARATIONS -Wmissing-declarations) check_and_add_flag(MISSING_DECLARATIONS -Wmissing-declarations)
check_and_add_flag(MISSING_VARIABLE_DECLARATIONS -Wmissing-variable-declarations) check_and_add_flag(MISSING_VARIABLE_DECLARATIONS -Wmissing-variable-declarations)