CMakeLists: Add Clang's Specific WShadow Diagnostics
For parity with GCC.
This commit is contained in:
parent
8f6fd912f7
commit
f71f2c6ba1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue