Author: charusso Date: Sun Oct 13 03:41:13 2019 New Revision: 374713 URL: http://llvm.org/viewvc/llvm-project?rev=374713&view=rev Log: [clang-tidy] bugprone-not-null-terminated-result: checker adjustments 3
On Windows the signed/unsigned int conversions of APInt seems broken, so that two of the test files marked as unsupported on Windows, as a hotfix. Modified: clang-tools-extra/trunk/test/clang-tidy/bugprone-not-null-terminated-result-strlen.c clang-tools-extra/trunk/test/clang-tidy/bugprone-not-null-terminated-result-wcslen.cpp Modified: clang-tools-extra/trunk/test/clang-tidy/bugprone-not-null-terminated-result-strlen.c URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/bugprone-not-null-terminated-result-strlen.c?rev=374713&r1=374712&r2=374713&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clang-tidy/bugprone-not-null-terminated-result-strlen.c (original) +++ clang-tools-extra/trunk/test/clang-tidy/bugprone-not-null-terminated-result-strlen.c Sun Oct 13 03:41:13 2019 @@ -1,6 +1,11 @@ // RUN: %check_clang_tidy %s bugprone-not-null-terminated-result %t -- \ // RUN: -- -std=c11 -I %S/Inputs/bugprone-not-null-terminated-result +// FIXME: Something wrong with the APInt un/signed conversion on Windows: +// in 'strncmp(str6, "string", 7);' it tries to inject '4294967302' as length. + +// UNSUPPORTED: system-windows + #include "not-null-terminated-result-c.h" #define __STDC_LIB_EXT1__ 1 Modified: clang-tools-extra/trunk/test/clang-tidy/bugprone-not-null-terminated-result-wcslen.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-tidy/bugprone-not-null-terminated-result-wcslen.cpp?rev=374713&r1=374712&r2=374713&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clang-tidy/bugprone-not-null-terminated-result-wcslen.cpp (original) +++ clang-tools-extra/trunk/test/clang-tidy/bugprone-not-null-terminated-result-wcslen.cpp Sun Oct 13 03:41:13 2019 @@ -1,6 +1,11 @@ // RUN: %check_clang_tidy %s bugprone-not-null-terminated-result %t -- \ // RUN: -- -std=c++11 -I %S/Inputs/bugprone-not-null-terminated-result +// FIXME: Something wrong with the APInt un/signed conversion on Windows: +// in 'wcsncmp(wcs6, L"string", 7);' it tries to inject '4294967302' as length. + +// UNSUPPORTED: system-windows + #include "not-null-terminated-result-cxx.h" #define __STDC_LIB_EXT1__ 1 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits