| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | strcat-1.ll | 1 ; Test that the strcat libcall simplifier works correctly per the 12 declare i8* @strcat(i8*, i8*) 17 ; CHECK-NOT: call i8* @strcat 24 ; rslt1 = strcat(target, "hello\00") 26 %rslt1 = call i8* @strcat(i8* %arg1, i8* %arg2) 28 ; rslt2 = strcat(rslt1, "\00") 30 %rslt2 = call i8* @strcat(i8* %rslt1, i8* %arg3) 32 ; rslt3 = strcat(rslt2, "\00hello\00") 34 %rslt3 = call i8* @strcat(i8* %rslt2, i8* %arg4)
|
| H A D | strcat-2.ll | 1 ; Test that the strcat libcall simplifier works correctly. 11 declare i8* @strcat(i8*, i8*) 15 ; CHECK-NOT: call i8* @strcat 20 call i8* @strcat(i8* %dst, i8* %src) 30 call i8* @strcat(i8* %dst, i8* %src)
|
| H A D | strcat-3.ll | 1 ; Test that the strcat libcall simplifier works correctly. 11 declare i16* @strcat(i8*, i8*) 15 ; CHECK: call i16* @strcat 20 call i16* @strcat(i8* %dst, i8* %src)
|
| H A D | disable-builtin.ll | 3 ; RUN: opt < %s -passes=instcombine -disable-builtin strcat -S | FileCheck %s 12 declare i8* @strcat(i8*, i8*) 17 %ret = call i8* @strcat(i8* %x, i8* %empty) 19 ; CHECK: call i8* @strcat
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/tests/ |
| H A D | asan_str_test.cpp | 423 strcat(to, from); in TEST() 424 strcat(to, from); in TEST() 425 strcat(to + from_size, from + from_size - 2); in TEST() 430 EXPECT_DEATH(strcat(to - 1, from), LeftOOBAccessMessage(1)); in TEST() 431 EXPECT_DEATH(strcat(to, from - 1), LeftOOBReadMessage(1)); in TEST() 436 EXPECT_DEATH(strcat(to, from), RightOOBReadMessage(0)); in TEST() 441 EXPECT_DEATH(strcat(to, from), RightOOBWriteMessage(0)); in TEST() 443 strcat(to, from + 1); in TEST() 531 strcat(str, str + 10); in TEST() 534 strcat(str + 11, str); in TEST() [all …]
|
| /llvm-project-15.0.7/openmp/runtime/test/env/ |
| H A D | omp_target_offload.c | 42 strcat(buf, disabled_examples[i]); in main() 49 strcat(buf, default_examples[i]); in main() 56 strcat(buf, mandatory_examples[i]); in main()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | string.c | 430 #define strcat(a,b) __strcat_chk(a,b,(size_t)-1) macro 434 #define strcat BUILTIN(strcat) macro 435 char *strcat(char *restrict s1, const char *restrict s2); 460 clang_analyzer_eval(strcat(x, y) == x); // expected-warning{{TRUE}} in strcat_effects() 468 …strcat(x, y); // expected-warning{{String concatenation function overflows the destination buffer}} in strcat_overflow_0() 487 strcat(x, y); // no-warning in strcat_no_overflow() 491 strcat(dst, "1234"); in strcat_symbolic_dst_length() 497 strcat(dst, "1234"); in strcat_symbolic_dst_length_taint() 503 strcat(dst, &src[offset]); in strcat_unknown_src_length() 516 strcat(dst, src); in strcat_too_big() [all …]
|
| H A D | security-syntax-checks.m | 218 // strcat() 225 #define strcat(a,b) __strcat_chk(a,b,(size_t)-1) macro 229 #define strcat BUILTIN(strcat) macro 230 char *strcat(char *restrict s1, const char *restrict s2); function 238 …strcat(x, y); //expected-warning{{Call to function 'strcat' is insecure as it does not provide bou…
|
| /llvm-project-15.0.7/libc/test/src/string/ |
| H A D | strcat_test.cpp | 18 char *result = __llvm_libc::strcat(dest, abc); in TEST() 33 char *result = __llvm_libc::strcat(dest, abc); in TEST()
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/ |
| H A D | strcat_strict.c | 16 char* r = strcat(to + to_size, from); in test1() 22 char* r = strcat(to, from); in test2()
|
| H A D | strcat-overlap.cpp | 48 strcat(buffer, buffer + 1); // BOOM in bad_function()
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/abseil/ |
| H A D | redundant-strcat-calls.rst | 1 .. title:: clang-tidy - abseil-redundant-strcat-calls 3 abseil-redundant-strcat-calls
|
| /llvm-project-15.0.7/compiler-rt/test/BlocksRuntime/ |
| H A D | testfilerunner.m | 323 strcat(path, compilerPath); 324 strcat(path, "/"); 374 strcat(path, filename); 375 strcat(path, "."); 376 strcat(path, (options & Do64) ? "64" : "32"); 379 case DoRR: strcat(path, "-rr"); break; 385 if (options & DoCPP) strcat(path, "++"); 386 if (options & DoDashO) strcat(path, "-O"); 389 if (wantsC99) strcat(path, "-C99"); 390 strcat(path, DoClang ? "-clang" : "-gcc"); [all …]
|
| /llvm-project-15.0.7/openmp/libompd/src/ |
| H A D | omp-icv.cpp | 399 strcat(nthreads_list_str, temp_value); in ompd_get_nthreads() 761 strcat(run_sched_var_string, "static"); in ompd_get_run_schedule() 764 strcat(run_sched_var_string, "static"); in ompd_get_run_schedule() 767 strcat(run_sched_var_string, "dynamic"); in ompd_get_run_schedule() 772 strcat(run_sched_var_string, "guided"); in ompd_get_run_schedule() 775 strcat(run_sched_var_string, "auto"); in ompd_get_run_schedule() 778 strcat(run_sched_var_string, "trapezoidal"); in ompd_get_run_schedule() 781 strcat(run_sched_var_string, "static_steal"); in ompd_get_run_schedule() 800 strcat(run_sched_var_string, temp_str); in ompd_get_run_schedule() 937 strcat(proc_bind_list_str, temp_value); in ompd_get_proc_bind()
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/ |
| H A D | memprof_interceptors.cpp | 199 INTERCEPTOR(char *, strcat, char *to, const char *from) { in INTERCEPTOR() argument 201 MEMPROF_INTERCEPTOR_ENTER(ctx, strcat); in INTERCEPTOR() 208 return REAL(strcat)(to, from); in INTERCEPTOR() 341 MEMPROF_INTERCEPT_FUNC(strcat); in InitializeMemprofInterceptors()
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | libcalls-fno-builtin.c | 23 char *strcat(char *s1, const char *s2); 73 char *t6(char *x) { return strcat(x, ""); } in t6()
|
| /llvm-project-15.0.7/libc/src/string/ |
| H A D | strcat.h | 16 char *strcat(char *__restrict dest, const char *__restrict src);
|
| H A D | strcat.cpp | 17 LLVM_LIBC_FUNCTION(char *, strcat,
|
| /llvm-project-15.0.7/llvm/test/CodeGen/ARM/ |
| H A D | dyn-stackalloc.ll | 55 %tmp15 = call i8* @strcat(i8* %tmp6, i8* %contents) 62 declare i8* @strcat(i8*, i8*)
|
| /llvm-project-15.0.7/llvm/test/Analysis/BasicAA/ |
| H A D | libfuncs.ll | 143 declare i8* @strcat(i8*, i8*) 147 ; CHECK: NoModRef: Ptr: i8* %a <-> %res = tail call i8* @strcat(i8* %a.gep.1, i8* %b.gep.1) 148 ; CHECK-NEXT: NoModRef: Ptr: i8* %b <-> %res = tail call i8* @strcat(i8* %a.gep.1, i8* %b.gep.1) 149 ; CHECK-NEXT: Both ModRef: Ptr: i8* %a.gep.1 <-> %res = tail call i8* @strcat(i8* %a.gep.1, i8* … 150 ; CHECK-NEXT: Just Ref: Ptr: i8* %b.gep.1 <-> %res = tail call i8* @strcat(i8* %a.gep.1, i8* %b.… 151 ; CHECK-NEXT: Both ModRef: Ptr: i8* %res <-> %res = tail call i8* @strcat(i8* %a.gep.1, i8* %b.g… 152 ; CHECK-NEXT: Both ModRef: Ptr: i8* %a.gep.5 <-> %res = tail call i8* @strcat(i8* %a.gep.1, i8* … 153 ; CHECK-NEXT: Just Ref: Ptr: i8* %b.gep.5 <-> %res = tail call i8* @strcat(i8* %a.gep.1, i8* %b.… 162 %res = tail call i8* @strcat(i8* %a.gep.1, i8* %b.gep.1)
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | cstring | 31 char* strcat (char* restrict s1, const char* restrict s2); 74 using ::strcat _LIBCPP_USING_IF_EXISTS;
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_interceptors.cpp | 383 INTERCEPTOR(char *, strcat, char *to, const char *from) { in DEFINE_REAL() 385 ASAN_INTERCEPTOR_ENTER(ctx, strcat); in DEFINE_REAL() 401 return REAL(strcat)(to, from); in DEFINE_REAL() 638 ASAN_INTERCEPT_FUNC(strcat); in InitializeAsanInterceptors()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Thumb/ |
| H A D | dyn-stackalloc.ll | 65 %tmp15 = call i8* @strcat( i8* %tmp6, i8* %contents ) 72 declare i8* @strcat(i8*, i8*)
|
| /llvm-project-15.0.7/lldb/test/API/commands/process/attach/attach_denied/ |
| H A D | main.cpp | 28 strcat(tmp_file_name, "_tmp"); in writePid()
|
| /llvm-project-15.0.7/libcxx/test/std/depr/depr.c.headers/ |
| H A D | string_h.pass.cpp | 31 ASSERT_SAME_TYPE(char*, decltype(strcat(cp, cpc))); in main()
|