| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | DNBRegisterInfo.cpp | 51 snprintf(str, sizeof(str), "%s", in Dump() 55 snprintf(str, sizeof(str), "0x%2.2x", value.uint8); in Dump() 58 snprintf(str, sizeof(str), "0x%4.4x", value.uint16); in Dump() 85 snprintf(str, sizeof(str), "%u", value.uint8); in Dump() 88 snprintf(str, sizeof(str), "%u", value.uint16); in Dump() 91 snprintf(str, sizeof(str), "%u", value.uint32); in Dump() 106 snprintf(str, sizeof(str), "%d", value.sint8); in Dump() 109 snprintf(str, sizeof(str), "%d", value.sint16); in Dump() 112 snprintf(str, sizeof(str), "%d", value.sint32); in Dump() 127 snprintf(str, sizeof(str), "%f", value.float32); in Dump() [all …]
|
| H A D | DNBDataRef.cpp | 261 str_offset += snprintf(str, sizeof(str), "0x%8.8llx:", in Dump() 281 str_offset += snprintf(str + str_offset, sizeof(str) - str_offset, in Dump() 286 str_offset += snprintf(str + str_offset, sizeof(str) - str_offset, in Dump() 290 str_offset += snprintf(str + str_offset, sizeof(str) - str_offset, in Dump() 294 str_offset += snprintf(str + str_offset, sizeof(str) - str_offset, in Dump() 298 str_offset += snprintf(str + str_offset, sizeof(str) - str_offset, in Dump() 302 str_offset += snprintf(str + str_offset, sizeof(str) - str_offset, in Dump() 306 str_offset += snprintf(str + str_offset, sizeof(str) - str_offset, in Dump() 310 str_offset += snprintf(str + str_offset, sizeof(str) - str_offset, in Dump()
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | sprintf-2.ll | 6 declare i32 @snprintf(i8*, i64, i8*, ...) 15 ; Fold snprintf(0, 0, "%s", a[I].M + C) for constant I in [0, 1], 40 ; Fold snprintf(0, 0, "%s", a[0].a) to 1. 46 ; Fold snprintf(0, 0, "%s", a[0].a) to 0. 52 ; Fold snprintf(0, 0, "%s", a[0].b) to 2. 58 ; Fold snprintf(0, 0, "%s", a[0].b + 1) to 1. 64 ; Fold snprintf(0, 0, "%s", a[0].b + 2) to 0. 70 ; Fold snprintf(0, 0, "%s", a[0].c) to 3. 76 ; Fold snprintf(0, 0, "%s", a[1].a) to 4. 82 ; Fold snprintf(0, 0, "%s", a[1].b) to 5. [all …]
|
| H A D | snprintf.ll | 11 declare i32 @snprintf(i8*, i64, i8*, ...) #1 18 %call = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %buf, i64 32, i8* %fmt) #2 25 ; CHECK-NEXT: [[CALL:%.*]] = call i32 (i8*, i64, i8*, ...) @snprintf(i8* [[BUF:%.*]], i64 0, i8*… 28 %call = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %buf, i64 0, i8* %fmt) #2 37 …%call = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %buf, i64 %size, i8* getelementptr inbounds ([… 46 …%call = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %buf, i64 0, i8* getelementptr inbounds ([4 x … 63 …%call = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([4 x … 72 …%call = call i32 (i8*, i64, i8*, ...) @snprintf(i8* null, i64 0, i8* getelementptr inbounds ([3 x … 83 …%call = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %buf, i64 32, i8* getelementptr inbounds ([4 x… 142 ; snprintf(buf, 32, "") -> memcpy -> store [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | DWARFDefines.cpp | 25 snprintf(invalid, sizeof(invalid), "Unknown DW_TAG constant: 0x%x", val); in DW_TAG_value_to_name() 35 snprintf(invalid, sizeof(invalid), "Unknown DW_AT constant: 0x%x", val); in DW_AT_value_to_name() 45 snprintf(invalid, sizeof(invalid), "Unknown DW_FORM constant: 0x%x", val); in DW_FORM_value_to_name() 55 snprintf(invalid, sizeof(invalid), "Unknown DW_OP constant: 0x%x", val); in DW_OP_value_to_name() 65 snprintf(invalid, sizeof(invalid), "Unknown DW_ATE constant: 0x%x", val); in DW_ATE_value_to_name() 75 snprintf(invalid, sizeof(invalid), "Unknown DW_LANG constant: 0x%x", val); in DW_LANG_value_to_name() 85 snprintf(invalid, sizeof(invalid), "Unknown DW_LNS constant: 0x%x", val); in DW_LNS_value_to_name()
|
| /llvm-project-15.0.7/libc/test/src/stdio/ |
| H A D | snprintf_test.cpp | 21 __llvm_libc::snprintf(buff, 16, "A simple string with no conversions."); in TEST() 25 written = __llvm_libc::snprintf(buff, 5, "%s", "1234567890"); in TEST() 30 written = __llvm_libc::snprintf(nullptr, 0, "%s and more", "1234567890"); in TEST() 39 __llvm_libc::snprintf(buff, 37, "A simple string with no conversions."); in TEST() 43 written = __llvm_libc::snprintf(buff, 20, "%s", "1234567890"); in TEST()
|
| /llvm-project-15.0.7/openmp/runtime/test/affinity/ |
| H A D | libomp_test_affinity.h | 95 n = snprintf(ptr, remaining, "%c", '{'); in affinity_mask_snprintf() 103 n = snprintf(ptr, remaining, "%c", ','); in affinity_mask_snprintf() 115 n = snprintf(ptr, remaining, "%d-%d", begin, end); in affinity_mask_snprintf() 118 n = snprintf(ptr, remaining, "%d,%d", begin, end); in affinity_mask_snprintf() 121 n = snprintf(ptr, remaining, "%d", begin); in affinity_mask_snprintf() 127 n = snprintf(ptr, remaining, "%c", '}'); in affinity_mask_snprintf()
|
| H A D | kmp-hw-subset.c | 108 snprintf(buf, sizeof(buf), "%dt,%ds,%dc", nthreads_per_core, nsockets, in check_places() 111 snprintf(buf, sizeof(buf), "%ds,%dc,%dt", nsockets, ncores_per_socket, in check_places()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | implicit-builtin-decl.c | 46 void snprintf(); // expected-warning{{incompatible redeclaration of library function 'snprintf'}} \ 52 snprintf(); in main() 55 void snprintf() { } in snprintf() function
|
| H A D | format-strings.c | 14 int snprintf(char *restrict, size_t, const char *restrict, ...); 44 snprintf(buf,2,s); // expected-warning {{format string is not a string lit}} in check_string_literal() 94 snprintf(buf,2,s); // expected-warning {{format string is not a string lit}} in check_string_literal2() 205 …snprintf(buf, 2, "%%%%%ld%;%d", 1, 2, 3); // expected-warning{{format specifies type 'long' but th… in check_invalid_specifier() 211 snprintf(b,10,"%%%%%d\0%d",1,2); // expected-warning {{string contains '\0'}} in check_null_char_string()
|
| /llvm-project-15.0.7/compiler-rt/lib/gwp_asan/optional/ |
| H A D | segv_handler_posix.cpp | 54 snprintf(DescriptionBuffer, kDescriptionBufferLen, in printHeader() 59 snprintf(DescriptionBuffer, kDescriptionBufferLen, in printHeader() 64 snprintf(DescriptionBuffer, kDescriptionBufferLen, in printHeader() 69 snprintf(DescriptionBuffer, kDescriptionBufferLen, in printHeader() 80 snprintf(ThreadBuffer, kThreadBufferLen, "<unknown>"); in printHeader() 82 snprintf(ThreadBuffer, kThreadBufferLen, "%" PRIu64, ThreadID); in printHeader()
|
| /llvm-project-15.0.7/clang/test/Analysis/cert/ |
| H A D | pos34-c.cpp | 12 int snprintf(char *str, size_t size, const char *format, ...); 18 int retval = snprintf(env, sizeof(env), "TEST=%s", var); in volatile_memory1() 34 int retval = snprintf(env, sizeof(env), "TEST=%s", var); in test_static()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | regerror.c | 49 #define snprintf _snprintf macro 104 (void)snprintf(convbuf, sizeof convbuf, in llvm_regerror() 133 (void)snprintf(localbuf, localbufsize, "%d", r->code); in regatoi()
|
| H A D | TarWriter.cpp | 97 snprintf(Hdr.Checksum, sizeof(Hdr.Checksum), "%06o", Chksum); in computeChecksum() 108 snprintf(Hdr.Size, sizeof(Hdr.Size), "%011zo", PaxAttr.size()); in writePaxHeader() 162 snprintf(Hdr.Size, sizeof(Hdr.Size), "%011zo", Size); in writeUstarHeader()
|
| /llvm-project-15.0.7/openmp/runtime/test/affinity/format/ |
| H A D | api2.c | 22 #define snprintf _snprintf macro 55 needed2 = (size_t)snprintf(supposed, 512, "tl:%d tn:%d nt:%d an:%d", tl, tn, nt, an); in main() 64 …needed2 = (size_t)snprintf(supposed, 512, "nesting_level:%d thread_num:%d num_threads:%d ancestor_… in main()
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/ |
| H A D | printf-1.c | 8 # define snprintf _snprintf macro 21 snprintf(buf, 1000, "qwe"); in main()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/Utility/ |
| H A D | StopInfoMachException.cpp | 414 snprintf(code_desc_buf, sizeof(code_desc_buf), "%d%%", in GetDescription() 416 snprintf(subcode_desc_buf, sizeof(subcode_desc_buf), "%d%%", in GetDescription() 422 snprintf( in GetDescription() 425 snprintf(subcode_desc_buf, sizeof(subcode_desc_buf), "%d w/s", in GetDescription() 431 snprintf(code_desc_buf, sizeof(code_desc_buf), "%d MB", in GetDescription() 440 snprintf(code_desc_buf, sizeof(code_desc_buf), "%d MB", in GetDescription() 442 snprintf(subcode_desc_buf, sizeof(subcode_desc_buf), "%d MB", in GetDescription()
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | taint-tester.cpp | 10 int snprintf(char *, size_t, const char *, ...); 33 snprintf(buf, 20, "%p", obj); // don't crash trying to load *obj in testOpaqueClass()
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Linux/ |
| H A D | stress_dtls.c | 84 snprintf(buf, sizeof(buf), "%s-f%d.so", argv[0], lib); in main() 90 snprintf(buf, sizeof(buf), "f%d", lib); in main()
|
| /llvm-project-15.0.7/compiler-rt/test/memprof/TestCases/ |
| H A D | stress_dtls.c | 79 snprintf(buf, sizeof(buf), "%s-f%d.so", argv[0], lib); in main() 85 snprintf(buf, sizeof(buf), "f%d", lib); in main()
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/MacOSX/ |
| H A D | MachException.cpp | 172 snprintf(desc, DNB_THREAD_STOP_INFO_MAX_DESC_LENGTH, "%s", exc_name); in GetStopInfo() 175 snprintf(desc, DNB_THREAD_STOP_INFO_MAX_DESC_LENGTH, "%i", exc_type); in GetStopInfo() 183 snprintf(desc, end_desc - desc, " EXC_SOFT_SIGNAL( %i ( %s ))", in GetStopInfo() 190 desc += snprintf(desc, end_desc - desc, " data[%llu] = {", in GetStopInfo() 196 desc += snprintf( in GetStopInfo()
|
| /llvm-project-15.0.7/lldb/include/lldb/Core/ |
| H A D | StructuredDataImpl.h | 153 return (::snprintf(s, 1, "%s", result.data())); in GetStringValue() 155 return (::snprintf(dst, dst_len, "%s", result.data())); in GetStringValue()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_printf_test.cpp | 101 # define snprintf _snprintf macro 109 snprintf(buf2, sizeof(buf2), fmt, arg1, arg2); in TestAgainstLibc()
|
| /llvm-project-15.0.7/libc/src/stdio/ |
| H A D | CMakeLists.txt | 243 snprintf 245 snprintf.cpp 247 snprintf.h
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Hexagon/ |
| H A D | dead-store-stack.ll | 40 …call void (i8*, i32, i8*, ...) @snprintf(i8* undef, i32 undef, i8* getelementptr inbounds ([8 x i8… 107 call void (i8*, i32, i8*, ...) @snprintf(i8* undef, i32 undef, i8* nonnull undef, i32 undef) #2 127 declare void @snprintf(i8* nocapture, i32, i8* nocapture readonly, ...) local_unnamed_addr #1
|