| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/ |
| H A D | strncasecmp_strict.c | 39 assert((strncasecmp(s1, s2, i) == 0) == (i < size)); in main() 42 assert(strncasecmp(s1, s2, 2*size) == 0); in main() 45 return strncasecmp(s1-1, s2, 1); in main() 47 return strncasecmp(s1, s2-1, 1); in main() 49 return strncasecmp(s1+size, s2, 1); in main() 51 return strncasecmp(s1, s2+size, 1); in main() 53 return strncasecmp(s1+1, s2, size); in main() 55 return strncasecmp(s1, s2+1, size); in main() 58 assert(strncasecmp(s1, s2, 2*size) != 0); in main() 62 assert(strncasecmp(s1, s2, 2*size) != 0); in main()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | string.c | 1116 #define strncasecmp BUILTIN(strncasecmp) macro 1117 int strncasecmp(const char *s1, const char *s2, size_t n); 1122 clang_analyzer_eval(strncasecmp(x, y, 2) > 0); // expected-warning{{TRUE}} in strncasecmp_check_modelling() 1126 clang_analyzer_eval(strncasecmp(y, x, 2) < 0); // expected-warning{{TRUE}} in strncasecmp_check_modelling() 1154 clang_analyzer_eval(strncasecmp(x, y, 3) > 0); // expected-warning{{TRUE}} in strncasecmp_1() 1160 clang_analyzer_eval(strncasecmp(x, y, 3) < 0); // expected-warning{{TRUE}} in strncasecmp_2() 1178 clang_analyzer_eval(strncasecmp(x, y, 5) < 0); // expected-warning{{TRUE}} in strncasecmp_diff_length_0() 1184 clang_analyzer_eval(strncasecmp(x, y, 5) < 0); // expected-warning{{TRUE}} in strncasecmp_diff_length_1() 1190 clang_analyzer_eval(strncasecmp(x, y, 5) > 0); // expected-warning{{TRUE}} in strncasecmp_diff_length_2() 1196 clang_analyzer_eval(strncasecmp(x, y, 5) < 0); // expected-warning{{TRUE}} in strncasecmp_diff_length_3() [all …]
|
| H A D | std-c-library-functions-arg-cstring-dependency.c | 16 int strncasecmp(const char *s1, const char *s2, size_t n); 20 …return strncasecmp(a, b, n); // expected-warning{{Null pointer passed as 2nd argument to string co… in strncasecmp_null_argument()
|
| H A D | taint-generic.c | 781 int strncasecmp(const char *s1, const char *s2, size_t n);
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerInterceptors.cpp | 145 DEFINE_REAL(int, strncasecmp, const char *, const char *, size_t) in DEFINE_REAL() 183 ATTRIBUTE_INTERFACE int strncasecmp(const char *s1, const char *s2, size_t n) { in strncasecmp() function 185 int result = REAL(strncasecmp)(s1, s2, n); in strncasecmp() 239 REAL(strncasecmp) = reinterpret_cast<strncasecmp_type>( in fuzzerInit() 240 getFuncAddr("strncasecmp", reinterpret_cast<uintptr_t>(&strncasecmp))); in fuzzerInit()
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/tests/ |
| H A D | asan_str_test.cpp | 322 EXPECT_EQ(0, strncasecmp("a", "b", 0)); in TEST() 323 EXPECT_EQ(0, strncasecmp("abCD", "ABcd", 10)); in TEST() 324 EXPECT_EQ(0, strncasecmp("abCd", "ABcef", 3)); in TEST() 325 EXPECT_GT(0, strncasecmp("abcde", "ABCfa", 4)); in TEST() 326 EXPECT_GT(0, strncasecmp("a", "B", 5)); in TEST() 327 EXPECT_GT(0, strncasecmp("bc", "BCde", 4)); in TEST() 328 EXPECT_LT(0, strncasecmp("xyz", "xyy", 10)); in TEST() 329 EXPECT_LT(0, strncasecmp("Baa", "aaa", 1)); in TEST() 330 EXPECT_LT(0, strncasecmp("zyx", "", 2)); in TEST() 410 RunStrNCmpTest(&strncasecmp); in TEST()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | warn-memsize-comparison.cpp | 10 extern "C" int strncasecmp(const char *s1, const char *s2, size_t n); 50 if (strncasecmp(b1, b2, sizeof(b1) >= 0)) {} // \ in f() 54 if (strncasecmp(b1, b2, sizeof(b1)) >= 0) {} in f()
|
| H A D | warn-memset-bad-sizeof.cpp | 170 extern "C" int strncasecmp(const char *s1, const char *s2, unsigned n); 181 strncasecmp(FOO, BAR, sizeof(FOO)); // \ in strcpy_and_friends()
|
| /llvm-project-15.0.7/polly/lib/External/isl/ |
| H A D | pip.c | 366 if (strncasecmp(s, "Maximize", 8) == 0) in main() 368 if (strncasecmp(s, "Rational", 8) == 0) { in main() 372 if (strncasecmp(s, "Urs_parms", 9) == 0) in main() 374 if (strncasecmp(s, "Urs_unknowns", 12) == 0) in main()
|
| H A D | isl_config_post.h | 27 #define strncasecmp _strnicmp macro
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | suspicious-string-compare.cpp | 29 int strncasecmp(const char *, const char *, size); 155 if (strncasecmp(A, "a", 1)) in test_implicit_compare_with_functions()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | builtins-gnu-mode.c | 14 int strncasecmp; variable
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
| H A D | weak_hook_test.cpp | 74 int_sink = strncasecmp(s1, s2, sizeof(s2)); in main()
|
| /llvm-project-15.0.7/polly/lib/External/ |
| H A D | isl_config.h.cmake | 29 /* Define to 1 if you have the declaration of `strncasecmp', and to 0 if you
|
| H A D | CMakeLists.txt | 127 int main(void) { (void)strncasecmp(\"\", \"\", 0); return 0; } 136 message(FATAL_ERROR "No strncasecmp implementation found")
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
| H A D | suspicious-string-compare.rst | 63 `strcmpi`, `stricmp`, `strncasecmp`, `strncmp`, `strnicmp`, `wcscasecmp`,
|
| /llvm-project-15.0.7/compiler-rt/test/dfsan/ |
| H A D | custom.cpp | 515 int rv = strncasecmp(str1, str2, sizeof(str1)); in test_strncasecmp() 524 rv = strncasecmp(str1, str2, 3); in test_strncasecmp() 533 rv = strncasecmp(s1, s2, 0); in test_strncasecmp() 537 rv = strncasecmp(s1, s2, 1); in test_strncasecmp() 541 rv = strncasecmp(s1, s2, 2); in test_strncasecmp() 545 rv = strncasecmp(s1, s2, 3); in test_strncasecmp()
|
| /llvm-project-15.0.7/llvm/test/Analysis/BranchProbabilityInfo/ |
| H A D | libfunc_call.ll | 6 declare i32 @strncasecmp(i8*, i8*, i32) 175 %val = call i32 @strncasecmp(i8* %p, i8* %q, i32 4)
|
| /llvm-project-15.0.7/llvm/test/Transforms/InferFunctionAttrs/ |
| H A D | no-proto.ll | 834 ; CHECK: declare void @strncasecmp(...) 835 declare void @strncasecmp(...)
|
| H A D | annotate.ll | 922 ; CHECK: declare i32 @strncasecmp(i8* nocapture, i8* nocapture, i64) [[NOFREE_NOUNWIND_READONLY_WIL… 923 declare i32 @strncasecmp(i8*, i8*, i64)
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | DNB.cpp | 632 if (::strncasecmp(process_name, proc_infos[i].kp_proc.p_comm, in GetAllInfosMatchingName() 664 if (::strncasecmp(process_name, argv_basename, PATH_MAX) == 0) { in GetAllInfosMatchingName()
|
| /llvm-project-15.0.7/compiler-rt/lib/dfsan/ |
| H A D | done_abilist.txt | 275 fun:strncasecmp=custom
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetLibraryInfo.def | 1312 /// int strncasecmp(const char *s1, const char *s2, size_t n); 1313 TLI_DEFINE_ENUM_INTERNAL(strncasecmp) 1314 TLI_DEFINE_STRING_INTERNAL("strncasecmp")
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-tli-checker/ |
| H A D | ps4-tli-check.yaml | 873 - Name: strncasecmp
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | Builtins.def | 1124 #undef strncasecmp 1126 LIBBUILTIN(strncasecmp, "icC*cC*z", "f", "strings.h", ALL_GNU_LANGUAGES)
|