| /llvm-project-15.0.7/libc/test/src/stdio/ |
| H A D | sprintf_test.cpp | 40 written = __llvm_libc::sprintf(buff, "%%"); in TEST() 44 written = __llvm_libc::sprintf(buff, "abc %% def"); in TEST() 48 written = __llvm_libc::sprintf(buff, "%%%%%%"); in TEST() 57 written = __llvm_libc::sprintf(buff, "%c", 'a'); in TEST() 99 written = __llvm_libc::sprintf(buff, "%d", 123); in TEST() 103 written = __llvm_libc::sprintf(buff, "%i", -456); in TEST() 142 written = __llvm_libc::sprintf(buff, "%d", 0); in TEST() 146 written = __llvm_libc::sprintf(buff, "%.0d", 0); in TEST() 283 written = __llvm_libc::sprintf(buff, "%x", 0); in TEST() 424 written = __llvm_libc::sprintf(buff, "%o", 0); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | warn-fortify-source.c | 156 sprintf(buf, "hello"); in call_sprintf() 158 sprintf(buf, "1234%%"); in call_sprintf() 160 sprintf(buf, "1234%c", '9'); in call_sprintf() 162 sprintf(buf, "1234%d", 9); in call_sprintf() 166 sprintf(buf, "12%#x", 9); in call_sprintf() 170 sprintf(buf, "123%+d", 9); in call_sprintf() 172 sprintf(buf, "123% i", 9); in call_sprintf() 174 sprintf(buf, "%5d", 9); in call_sprintf() 176 sprintf(buf, "%.3f", 9.f); in call_sprintf() 178 sprintf(buf, "%+.2f", 9.f); in call_sprintf() [all …]
|
| H A D | format-strings.c | 15 int sprintf(char *restrict, const char *restrict, ...); 42 sprintf(buf,s); // expected-warning {{format string is not a string literal}} in check_string_literal() 92 sprintf(buf,s); // expected-warning {{format string is not a string literal}} in check_string_literal2() 204 …sprintf(buf,"%%%%%ld%d%d", 1, 2, 3); // expected-warning{{format specifies type 'long' but the arg… in check_invalid_specifier() 220 sprintf(buf, "", 1); // expected-warning {{format string is empty}} in check_empty_format_string() 225 sprintf(buf, ""); // no-warning in check_empty_format_string()
|
| /llvm-project-15.0.7/compiler-rt/lib/BlocksRuntime/ |
| H A D | runtime.c | 634 cp += sprintf(cp, "isa: NULL\n"); in _Block_dump() 637 cp += sprintf(cp, "isa: stack Block\n"); in _Block_dump() 643 cp += sprintf(cp, "isa: GC heap Block\n"); in _Block_dump() 646 cp += sprintf(cp, "isa: global Block\n"); in _Block_dump() 654 cp += sprintf(cp, "flags:"); in _Block_dump() 656 cp += sprintf(cp, " HASDESCRIPTOR"); in _Block_dump() 659 cp += sprintf(cp, " FREEME"); in _Block_dump() 662 cp += sprintf(cp, " ISGC"); in _Block_dump() 665 cp += sprintf(cp, " HASHELP"); in _Block_dump() 668 cp += sprintf(cp, " HASCTOR"); in _Block_dump() [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | sprintf-1.ll | 2 ; Test that the sprintf library call simplifier works correctly. 23 declare i32 @sprintf(i8*, i8*, ...) 25 ; Check sprintf(dst, fmt) -> llvm.memcpy(str, fmt, strlen(fmt) + 1, 1). 33 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt) 43 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt) 53 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt) 67 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8 104) 79 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i8* %str) 95 call i32 (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt, i32 187) 132 ; Check sprintf(dst, "%s", str) -> stpcpy(dest, str) - dest [all …]
|
| H A D | sprintf-void.ll | 8 declare void @sprintf(i8*, i8*, ...) 10 ; Check that a sprintf call, that would otherwise be optimized, but with 15 ; CHECK-NEXT: call void (i8*, i8*, ...) @sprintf(i8* [[DST:%.*]], i8* getelementptr inbounds ([1… 19 call void (i8*, i8*, ...) @sprintf(i8* %dst, i8* %fmt)
|
| H A D | 2010-05-30-memcpy-Struct.ll | 20 …%call = call i32 (i8*, i8*, ...) @sprintf(i8* %src, i8* getelementptr inbounds ([3 x i8], [3 x i8]… 24 declare i32 @sprintf(i8*, i8*, ...)
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
| H A D | resize_tls_dynamic.cpp | 26 sprintf(buff, "rm -f %s.so.*", argv[0]); in main() 31 sprintf(buff, "cp %s.so %s.so.%d", argv[0], argv[0], i); in main() 34 sprintf(buff, "%s.so.%d", argv[0], i); in main()
|
| /llvm-project-15.0.7/lldb/unittests/debugserver/ |
| H A D | RNBSocketTest.cpp | 30 sprintf(addr_buffer, "%s:%d", (const char *)baton, port); in ServerCallbackv4() 64 sprintf(addr_wrap, "[%s]", addr); in TestSocketListen() 66 sprintf(addr_wrap, "%s", addr); in TestSocketListen() 99 sprintf(addr_wrap, "[%s]:0", addr); in TestSocketConnect() 101 sprintf(addr_wrap, "%s:0", addr); in TestSocketConnect()
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | 2003-10-02-UnionLValueError.c | 3 int sprintf(char * restrict str, const char * restrict format, ...); 10 sprintf(buffer, u->s); in format_message()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | ExternalFunctions.cpp | 351 sprintf(OutputBuffer++, "%c", *FmtStr++); in lle_X_sprintf() 354 sprintf(OutputBuffer, "%c%c", *FmtStr, *(FmtStr+1)); in lle_X_sprintf() 377 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf() 393 sprintf(Buffer, FmtBuf, Args[ArgNo++].IntVal.getZExtValue()); in lle_X_sprintf() 395 sprintf(Buffer, FmtBuf,uint32_t(Args[ArgNo++].IntVal.getZExtValue())); in lle_X_sprintf() 398 sprintf(Buffer, FmtBuf, Args[ArgNo++].DoubleVal); break; in lle_X_sprintf() 400 sprintf(Buffer, FmtBuf, (void*)GVTOP(Args[ArgNo++])); break; in lle_X_sprintf() 402 sprintf(Buffer, FmtBuf, (char*)GVTOP(Args[ArgNo++])); break; in lle_X_sprintf()
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/tests/ |
| H A D | asan_oob_test.cpp | 33 sprintf(str, "is located.*%d byte.*to the left", off); in GetLeftOOBMessage() 41 sprintf(str, "is located.*%d byte.*to the right|SEGV", off); in GetRightOOBMessage() 46 sprintf(str, "is located.*%d byte.*to the right", off); in GetRightOOBMessage()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | printf-cstr.cpp | 9 extern int sprintf(char *, const char *restrict, ...); 51 sprintf(str, "%d: %s", n, hcs); in pod_test()
|
| /llvm-project-15.0.7/openmp/runtime/test/ompt/ |
| H A D | callback.h | 64 progress += sprintf(progress, "ompt_task_initial"); in format_task_type() 66 progress += sprintf(progress, "ompt_task_implicit"); in format_task_type() 68 progress += sprintf(progress, "ompt_task_explicit"); in format_task_type() 70 progress += sprintf(progress, "ompt_task_target"); in format_task_type() 72 progress += sprintf(progress, "ompt_task_taskwait"); in format_task_type() 74 progress += sprintf(progress, "|ompt_task_undeferred"); in format_task_type() 76 progress += sprintf(progress, "|ompt_task_untied"); in format_task_type() 78 progress += sprintf(progress, "|ompt_task_final"); in format_task_type() 80 progress += sprintf(progress, "|ompt_task_mergeable"); in format_task_type() 82 progress += sprintf(progress, "|ompt_task_merged"); in format_task_type() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/BlocksRuntime/ |
| H A D | fail.c | 51 sprintf(buffer, "/tmp/errorfile_%d", getpid()); in main() 78 sprintf(buffer, "/tmp/errorfile_%d", child); in main()
|
| /llvm-project-15.0.7/polly/lib/External/isl/imath/ |
| H A D | imdrover.c | 676 sprintf(str, "%ld", rem); in test_divv() 904 sprintf(g_output, "Incorrect comparison result (want %d, got %d)", expect, in test_comp() 918 sprintf(g_output, "Incorrect comparison result (want %d, got %d)", expect, in test_ucomp() 932 sprintf(g_output, "Incorrect comparison result (want %d, got %d)", expect, in test_zcomp() 948 sprintf(g_output, "Incorrect comparison result (want %d, got %d)", expect, in test_vcomp() 1013 pos += sprintf(g_output + pos, "%d.", g_bin2[i]); in test_tobin() 1015 sprintf(g_output + pos, "%d", g_bin2[i]); in test_tobin() 1030 sprintf(g_output, "Incorrect value (got %ld)", v); in test_to_int() 1045 sprintf(g_output, "Incorrect value (got %lu)", v); in test_to_uint() 1093 pos += sprintf(g_output + pos, "%d.", g_bin2[i]); in test_to_uns() [all …]
|
| /llvm-project-15.0.7/clang/test/Misc/ |
| H A D | caret-diags-macros.c | 22 #define sprintf(str, A, B) \ macro 26 sprintf(Msg, " sizeof FoooLib : =%3u\n", 12LL); in baz()
|
| /llvm-project-15.0.7/llvm/test/Transforms/LoopStrengthReduce/ |
| H A D | 2009-01-13-nonconstant-stride-outside-loop.ll | 13 declare i32 @sprintf(i8*, i8*, ...) nounwind 37 …%6 = tail call i32 (i8*, i8*, ...) @sprintf(i8* null, i8* getelementptr ([39 x i8], [39 x i8]* @"\…
|
| /llvm-project-15.0.7/libc/src/stdio/ |
| H A D | CMakeLists.txt | 231 sprintf 233 sprintf.cpp 235 sprintf.h
|
| H A D | sprintf.h | 14 int sprintf(char *__restrict buffer, const char *__restrict format, ...);
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Linux/ |
| H A D | printf-fortify-1.c | 12 sprintf(write_buffer, "%s_%s", "one", "two"); in foo()
|
| /llvm-project-15.0.7/lldb/test/API/macosx/corefile-default-ptrauth/ |
| H A D | create-corefile.c | 41 sprintf (buf, "nm '%s'", argv[1]); in main() 59 sprintf (buf, "dwarfdump -u '%s'", argv[1]); in main()
|
| /llvm-project-15.0.7/libc/AOR_v20.02/math/test/ |
| H A D | mathtest.c | 638 sprintf(tmp_op.name,"-%s",sop->name); in find_special_op_from_op() 962 *failp += sprintf(*failp," %s=",text); in print_error() 965 *failp += sprintf(*failp,"%s",sop->name); in print_error() 972 *failp += sprintf(*failp,str,result[0],result[1]); in print_error() 980 *failp += sprintf(*failp, " %s=HUGE", name); in print_ulps_helper() 982 *failp += sprintf(*failp, " %s=%.3f", name, (double)ulps / ULPUNIT); in print_ulps_helper() 1134 failp += sprintf(failp, in runtest() 1441 failp += sprintf(failp, in runtest() 1472 failp += sprintf(failp, " wrongres2=%08x.%08x", in runtest() 1475 failp += sprintf(failp, " wrongres2=%08x", in runtest() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
| H A D | sanitizer_set_report_path_test.cpp | 14 sprintf(buff, "%s.report_path/report", argv[0]); in main()
|
| H A D | sanitizer_bad_report_path_test.cpp | 20 sprintf(buff, "%s.report_path/report", argv[0]); in main()
|