| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | object-size.c | 10 #define strcpy(dest, src) \ macro 26 strcpy(&gbuf[4], "Hi there"); in test1() 32 strcpy(gbuf, "Hi there"); in test2() 51 strcpy(gp, "Hi there"); in test5() 59 strcpy(&buf[4], "Hi there"); in test6() 92 strcpy(*(++p), "Hi there"); in test10() 106 strcpy(++gp, "Hi there"); in test12() 113 strcpy(gp++, "Hi there"); in test13() 120 strcpy(--gp, "Hi there"); in test14() 127 strcpy(gp--, "Hi there"); in test15() [all …]
|
| H A D | stack-protector.c | 16 char *strcpy(char *s1, const char *s2); 21 strcpy(a, msg); in test1() 29 strcpy(a, msg); in test2()
|
| H A D | alloca.c | 5 char *strcpy(char *restrict s1, const char *restrict s2); 9 strcpy(C, argv[0]); in main()
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ARM/ |
| H A D | strcpy.ll | 1 ; Test that the strcpy library call simplifier works correctly for ARM procedure calls 12 declare i8* @strcpy(i8*, i8*) 20 call arm_aapcscc i8* @strcpy(i8* %dst, i8* %src) 30 %ret = call arm_aapcscc i8* @strcpy(i8* %dst, i8* %dst) 41 %ret = call arm_aapcscc i8* @strcpy(i8* %dst, i8* %src) 42 ; CHECK: call arm_aapcscc i8* @strcpy 52 call arm_aapcs_vfpcc i8* @strcpy(i8* %dst, i8* %src) 62 %ret = call arm_aapcs_vfpcc i8* @strcpy(i8* %dst, i8* %dst) 73 %ret = call arm_aapcs_vfpcc i8* @strcpy(i8* %dst, i8* %src) 74 ; CHECK: call arm_aapcs_vfpcc i8* @strcpy
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/clang-analyzer/ |
| H A D | security.insecureAPI.strcpy.rst | 1 .. title:: clang-tidy - clang-analyzer-security.insecureAPI.strcpy 3 …equiv=refresh: 5;URL=https://clang.llvm.org/docs/analyzer/checkers.html#security-insecureapi-strcpy 5 clang-analyzer-security.insecureAPI.strcpy 8 The clang-analyzer-security.insecureAPI.strcpy check is an alias, please see 9 …ailable Checkers <https://clang.llvm.org/docs/analyzer/checkers.html#security-insecureapi-strcpy>`_
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | strcpy-1.ll | 2 ; Test that the strcpy library call simplifier works correctly. 14 declare i8* @strcpy(i8*, i8*) 25 call i8* @strcpy(i8* %dst, i8* %src) 36 %ret = call i8* @strcpy(i8* %dst, i8* %dst) 49 call i8* @strcpy(i8* dereferenceable(80) %dst, i8* %src) 55 ; CHECK-NEXT: [[RET:%.*]] = call i8* @strcpy(i8* noundef nonnull dereferenceable(1) getelementpt… 62 %ret = call i8* @strcpy(i8* %dst, i8* %src) 68 ; CHECK-NEXT: %ret = musttail call i8* @strcpy(i8* %dst, i8* %src) 72 %ret = musttail call i8* @strcpy(i8* %dst, i8* %src) 86 call dereferenceable(1) i8* @strcpy(i8* %dst, i8* %src)
|
| H A D | strcpy-2.ll | 1 ; Test that the strcpy library call simplifier works correctly. 11 declare i16* @strcpy(i8*, i8*) 19 call i16* @strcpy(i8* %dst, i8* %src) 20 ; CHECK: call i16* @strcpy
|
| /llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/ |
| H A D | strcpy-nobuiltin.ll | 6 declare i8 *@strcpy(i8 *%dest, i8 *%src) 9 ; Check strcpy. 13 ; CHECK: brasl %r14, strcpy 15 %res = call i8 *@strcpy(i8 *%dest, i8 *%src) nobuiltin 35 ; CHECK: brasl %r14, strcpy 39 %unused = call i8 *@strcpy(i8 *%dest, i8 *%src) nobuiltin
|
| H A D | strcpy-01.ll | 1 ; Test strcpy using MVST. 5 declare i8 *@strcpy(i8 *%dest, i8 *%src) 8 ; Check strcpy. 18 %res = call i8 *@strcpy(i8 *%dest, i8 *%src) 47 %unused = call i8 *@strcpy(i8 *%dest, i8 *%src)
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | not-null-terminated-result-memcpy-safe-other.c | 57 strcpy(dst01, src); in good_memcpy_unknown_dest() 69 strcpy(dst02, "foobarbazqux"); in good_memcpy_variable_array() 83 strcpy(dst03, src); in good_memcpy_equal_src_length_and_length() 98 strcpy(dst04, src); in good_memcpy_dest_size_overflows() 111 strcpy(dst05, SRC); in good_memcpy_macro()
|
| H A D | not-null-terminated-result-memcpy-before-safe.c | 28 strcpy((char *)dst00, src); in good_memcpy_not_just_char_dest() 40 strcpy(dst01, src); in good_memcpy_known_dest() 56 strcpy(dst20, src); in good_memcpy_full_source_length()
|
| /llvm-project-15.0.7/lldb/test/API/lang/c/flexible-array-members/ |
| H A D | main.c | 25 strcpy(c->flexible, CONTENTS); in main() 30 strcpy((char *)sc->flexible, CONTENTS); in main() 35 strcpy((char *)uc->flexible, CONTENTS); in main()
|
| /llvm-project-15.0.7/libc/test/src/string/ |
| H A D | strcpy_test.cpp | 16 char *result = __llvm_libc::strcpy(dest, empty); in TEST() 26 char *result = __llvm_libc::strcpy(dest, abc); in TEST() 40 char *result = __llvm_libc::strcpy(dest + 3, abc); in TEST()
|
| /llvm-project-15.0.7/polly/lib/External/ppcg/ |
| H A D | cuda_common.c | 28 strcpy(name + len, "_host.cu"); in cuda_open_files() 31 strcpy(name + len, "_kernel.cu"); in cuda_open_files() 34 strcpy(name + len, "_kernel.hu"); in cuda_open_files()
|
| /llvm-project-15.0.7/openmp/runtime/test/env/ |
| H A D | omp_target_offload.c | 41 strcpy(buf, omp_target_offload); in main() 48 strcpy(buf, omp_target_offload); in main() 55 strcpy(buf, omp_target_offload); in main()
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/llvmlibc/ |
| H A D | implementation-in-namespace.rst | 13 void LLVM_LIBC_ENTRYPOINT(strcpy)(char *dest, const char *src) {} 23 void LLVM_LIBC_ENTRYPOINT(strcpy)(char *dest, const char *src) {} 27 void LLVM_LIBC_ENTRYPOINT(strcpy)(char *dest, const char *src) {}
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/tests/ |
| H A D | asan_str_test.cpp | 193 strcpy(from, "hello"); in TEST() 194 strcpy(to, from); in TEST() 195 strcpy(to + to_size - from_size, from); in TEST() 199 EXPECT_DEATH(Ident(strcpy(to - 1, from)), LeftOOBWriteMessage(1)); in TEST() 200 EXPECT_DEATH(Ident(strcpy(to, from - 1)), LeftOOBReadMessage(1)); in TEST() 205 EXPECT_DEATH(Ident(strcpy(to, from)), RightOOBReadMessage(0)); in TEST() 216 strcpy(from, "hello"); in TEST() 513 strcpy(str + 10, str); in TEST() 514 EXPECT_DEATH(strcpy(str + 9, str), OverlapErrorMessage("strcpy")); in TEST() 515 EXPECT_DEATH(strcpy(str, str + 4), OverlapErrorMessage("strcpy")); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | cstring-ranges.c | 8 char *strcpy(char *, const char *); 12 strcpy(a, b); in foo()
|
| H A D | string-with-signedness.c | 5 void *strcpy(unsigned char *, unsigned char *); 9 strcpy(&a, &b); in testUnsignedStrcpy()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/ |
| H A D | mem-builtins.ll | 6 declare hidden i8* @strcpy(i8* nocapture, i8* readonly nocapture) #0 33 … error: <unknown>:0:0: in function test_strcpy void (i8*, i8*): unsupported call to function strcpy 35 ; GCN: s_add_u32 s{{[0-9]+}}, s{{[0-9]+}}, strcpy@rel32@lo+4 36 ; GCN: s_addc_u32 s{{[0-9]+}}, s{{[0-9]+}}, strcpy@rel32@hi+12 38 %res = call i8* @strcpy(i8* %dst, i8* %src)
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cert/ |
| H A D | oop57-cpp.cpp | 16 void strcpy(void *, const void *, decltype(sizeof(int))); 55 std::strcpy(&Data, &Other, sizeof(Data)); in foo() 74 std::strcpy(&Data, &Other, sizeof(Data)); in bar()
|
| /llvm-project-15.0.7/llvm/test/Transforms/SafeStack/X86/ |
| H A D | array-aligned.ll | 31 ; CHECK: call i8* @strcpy(i8* %[[GEP]], i8* %[[A2]]) 32 %call = call i8* @strcpy(i8* %gep, i8* %a2) 38 declare i8* @strcpy(i8*, i8*)
|
| H A D | struct.ll | 33 ; CHECK: call i8* @strcpy(i8* %[[GEP]], i8* %[[A]]) 34 %call = call i8* @strcpy(i8* %gep, i8* %a2) 40 declare i8* @strcpy(i8*, i8*)
|
| /llvm-project-15.0.7/clang/test/Analysis/cert/ |
| H A D | pos34-c-fp-suppression.cpp | 22 strcpy(buffer, "woot"); in foo() 29 strcpy(buffer, "woot"); in bar()
|
| /llvm-project-15.0.7/lldb/test/API/functionalities/data-formatter/data-formatter-smart-array/ |
| H A D | main.cpp | 20 strcpy(strarr,"Nested Hello world!"); in SomeOtherData() 22 strcpy(strptr,"Nested Hello world!"); in SomeOtherData()
|