From f71f2c6ba1436653fe8dc18ea9004c12956fcfa6 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Fri, 8 Mar 2024 12:01:44 -0800 Subject: [PATCH] CMakeLists: Add Clang's Specific WShadow Diagnostics For parity with GCC. --- Source/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 4a4cd61b51..e589e42983 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -41,6 +41,8 @@ else() check_and_add_flag(UNINITIALIZED -Wuninitialized) check_and_add_flag(LOGICAL_OP -Wlogical-op) 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(MISSING_DECLARATIONS -Wmissing-declarations) check_and_add_flag(MISSING_VARIABLE_DECLARATIONS -Wmissing-variable-declarations)