From 0a58e5b572fba89e7b582f01391bc7e2baf673cf Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Sat, 16 Mar 2019 18:37:48 -0400 Subject: scripts/buildtests.sh - deal with improved static checkers cppcheck, clang analyzer, clang-tidy are getting better don't complaing about gtk deprecated stuff --- scripts/buildtests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/buildtests.sh b/scripts/buildtests.sh index 7cb3d988..d3de5d9f 100755 --- a/scripts/buildtests.sh +++ b/scripts/buildtests.sh @@ -94,7 +94,7 @@ CHECK_WARNINGS() { # print warnings found in the compile-stage output # $1 = file with the compile-stage output COMPILE_WARNINGS() { - whitelist='\(no[[:space:]]link[[:space:]]for:\|Value[[:space:]]descriptions\|unused[[:space:]]declarations\|g-ir-scanner:\|clang.*argument[[:space:]]unused[[:space:]]during[[:space:]]compilation\|U_PLATFORM_HAS_WINUWP_API\|DB_DBM_HSEARCH\|const[[:space:]]DBT\|db\.h\)' + whitelist='\(no[[:space:]]link[[:space:]]for:\|Value[[:space:]]descriptions\|unused[[:space:]]declarations\|g_type_class_add_private.*is[[:space:]]deprecated\|g-ir-scanner:\|clang.*argument[[:space:]]unused[[:space:]]during[[:space:]]compilation\|U_PLATFORM_HAS_WINUWP_API\|DB_DBM_HSEARCH\|const[[:space:]]DBT\|db\.h\)' CHECK_WARNINGS $1 "warning:" "$whitelist" } @@ -109,7 +109,7 @@ CPPCHECK_WARNINGS() { # print warnings find in the clang-tidy output # $1 = file with the clang-tidy output TIDY_WARNINGS() { - whitelist='\(Value[[:space:]]descriptions\|unused[[:space:]]declarations\|g-ir-scanner:\|clang.*argument[[:space:]]unused[[:space:]]during[[:space:]]compilation\|modernize-\|cppcoreguidelines-pro-type-const-cast\|cppcoreguidelines-pro-type-reinterpret-cast\|cppcoreguidelines-pro-type-vararg\|cppcoreguidelines-pro-bounds-pointer-arithmetic\|google-build-using-namespace\|llvm-include-order\|hicpp-use-equals-default\|cppcoreguidelines-no-malloc)' + whitelist='\(Value[[:space:]]descriptions\|unused[[:space:]]declarations\|g-ir-scanner:\|clang.*argument[[:space:]]unused[[:space:]]during[[:space:]]compilation\|modernize-\|cppcoreguidelines-pro-type-const-cast\|cppcoreguidelines-pro-type-reinterpret-cast\|cppcoreguidelines-owning-memory\|fuchsia.*\|hicpp-use-auto\|hicpp-no-malloc\|hicpp-use-nullptr\|hicpp-exception-baseclass\|cppcoreguidelines-pro-type-vararg\|cppcoreguidelines-pro-bounds-pointer-arithmetic\|google-build-using-namespace\|llvm-include-order\|hicpp-use-equals-default\|cppcoreguidelines-no-malloc\|g_type_class_add_private.*is[[:space:]]deprecated\)' CHECK_WARNINGS $1 "warning:" "$whitelist" } @@ -117,7 +117,7 @@ TIDY_WARNINGS() { # print warnings found in the scan-build output # $1 = file with the scan-build output SCAN_WARNINGS() { - whitelist='\(no[[:space:]]link[[:space:]]for:\|Value[[:space:]]descriptions\|unused[[:space:]]declarations\|icalerror.*Dereference[[:space:]]of[[:space:]]null[[:space:]]pointer\)' + whitelist='\(no[[:space:]]link[[:space:]]for:\|g_type_class_add_private.*is[[:space:]]deprecated\|/vcc\.c\|/vobject\.c\|/icalsslexer\.c\|Value[[:space:]]descriptions\|unused[[:space:]]declarations\|icalerror.*Dereference[[:space:]]of[[:space:]]null[[:space:]]pointer\)' CHECK_WARNINGS $1 "warning:" "$whitelist" } -- cgit v1.2.1