| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | format-strings.c | 62 printf("abc" in check_string_literal() 64 printf("abc\ in check_string_literal() 258 printf(s1); // no-warning in test_constant_bindings() 259 printf(s2); // no-warning in test_constant_bindings() 277 printf(P, 42); in test9() 381 printf("%c", s[0]); in test_unicode_conversions() 486 printf(0); // no-warning in rdar8269537() 500 printf("%#x\n", 10); in pr8641() 501 printf("%#X\n", 10); in pr8641() 637 printf(kFormat19, in pr9751() [all …]
|
| H A D | format-strings-enum-fixed-type.cpp | 11 EXTERN_C int printf(const char *,...); 22 printf("%hd", input); // no-warning in test() 26 printf("%d", input); // no-warning in test() 27 printf("%d", Constant); // no-warning in test() 40 printf("%lu", input); in testLong() 41 printf("%lu", LongConstant); in testLong() 52 printf("%hd", input); // no-warning in testUnderlyingTypedef() 56 printf("%d", input); // no-warning in testUnderlyingTypedef() 69 printf("%d", input); // no-warning in testTypedefChain() 83 printf("%hd", input); in testChar() [all …]
|
| H A D | format-strings-fixit.c | 11 int printf(char const *, ...); 21 printf("%s", (int) 123); in test() 23 printf("%u", (long) -12); in test() 24 printf("%p", 123); in test() 25 printf("%c\n", "x"); in test() 26 printf("%c\n", 1.23); in test() 46 printf("%.2c", 'a'); in test() 49 printf("%0-f", 1.23); in test() 52 printf("%hhs", "foo"); in test() 60 printf("%X", val); in test() [all …]
|
| H A D | format-strings-ms.c | 4 int printf(const char *format, ...) __attribute__((format(printf, 1, 2))); 38 printf("%wc", c); in w_test() 39 printf("%wC", c); in w_test() 40 printf("%C", c); in w_test() 41 printf("%ws", s); in w_test() 42 printf("%wS", s); in w_test() 43 printf("%S", s); in w_test() 80 printf("%Z", p); in z_test() 81 printf("%hZ", p); in z_test() 82 printf("%lZ", p); in z_test() [all …]
|
| H A D | format-strings-darwin.c | 10 int printf(const char *restrict, ...); 17 printf("%D", justRight); in test() 18 printf("%D", tooLong); in test() 19 printf("%U", justRight); in test() 20 printf("%U", tooLong); in test() 21 printf("%O", justRight); in test() 22 printf("%O", tooLong); in test() 43 …printf("%hD", x); // expected-warning{{conversion specifier is not supported by ISO C}} expected-n… in testPrintf() 44 …printf("%lD", y); // expected-warning{{conversion specifier is not supported by ISO C}} expected-n… in testPrintf() 45 …printf("%hU", x); // expected-warning{{conversion specifier is not supported by ISO C}} expected-n… in testPrintf() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | predefined-expr.cpp | 103 int printf(const char * _Format, ...); 108 printf("__func__ %s\n", __func__); in topLevelNamespaceFunction() 133 printf("__func__ %s\n", __func__); in classTemplateFunction() 142 printf("__func__ %s\n", __func__); in staticFunction() 148 printf("__func__ %s\n", __func__); 154 printf("__func__ %s\n", __func__); in virtualFunction() 160 printf("__func__ %s\n", __func__); in functionWithParameters() 166 printf("__func__ %s\n", __func__); in functionReturningClass() 173 printf("__func__ %s\n", __func__); in variadicFunction() 179 printf("__func__ %s\n", __func__); in withTemplateParameter1() [all …]
|
| /llvm-project-15.0.7/polly/lib/External/isl/interface/ |
| H A D | python.cc | 67 printf(", "); in print_method_arguments() 100 printf("("); in print_method_header() 102 printf("):\n"); in print_method_header() 140 printf(")\n"); in print_type_check() 152 printf(")\n"); in print_type_check() 236 printf(", "); in print_callback() 259 printf(")\n"); in print_callback() 305 printf("cb"); in print_arg_in_call() 308 printf("("); in print_arg_in_call() 792 printf("("); in print_class_header() [all …]
|
| /llvm-project-15.0.7/clang/test/Layout/ |
| H A D | ms-x86-lazy-empty-nonvirtual-base.cpp | 6 extern "C" int printf(const char *fmt, ...); 8 struct B0 { B0() { printf("B0 = %p\n", this); } }; in B0() 9 struct B1 { B1() { printf("B1 = %p\n", this); } }; in B1() 10 struct B2 { B2() { printf("B2 = %p\n", this); } }; in B2() 11 struct B3 { B3() { printf("B3 = %p\n", this); } }; in B3() 102 AD() { printf("AD = %p\n", this); } in AD() 195 AD1() { printf("AD1 = %p\n", this); } in AD1() 288 AD2() { printf("AD2 = %p\n", this); } in AD2() 381 AD3() { printf("AD3 = %p\n", this); } in AD3() 402 B() { printf("B = %p\n", this); } in B() [all …]
|
| H A D | ms-x86-empty-virtual-base.cpp | 6 extern "C" int printf(const char *fmt, ...); 21 struct D1 { D1() {printf("D1 : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} }; in D1() 26 A() : a(0xf000000A) {printf("X : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} in A() 45 B() : a(0xf000000B) {printf("X : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} in B() 65 C() : a(0xf000000C) {printf("X : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} in C() 96 D() : a(0xf000000D) {printf("X : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} in D() 126 E() : a(0xf000000E) {printf("X : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} in E() 158 F() : a(0xf000000F) {printf("X : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} in F() 186 G() : a(0xf0000010) {printf("X : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} in G() 219 H() : a(0xf0000011) {printf("X : %3d\n", ((int)(__SIZE_TYPE__)this)&0xfff);} in H() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaOpenCL/ |
| H A D | format-strings-fixit.cl | 17 int printf(__constant const char* st, ...) __attribute__((format(printf, 1, 2))); 21 printf("%v4f", (int4) 123); 24 printf("%v8d", (int4) 123); 27 printf("%v4d", (int8) 123); 30 printf("%v4f", (int8) 123); 33 printf("%v4ld", (int8) 123); 36 printf("%v4hlf", (int4) 123); 39 printf("%v8hld", (int4) 123); 42 printf("%v4hld", (int8) 123); 45 printf("%v4hlf", (int8) 123); [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-profdata/ |
| H A D | raw-two-profiles.test | 1 RUN: printf '\201rforpl\377' > %t-foo.profraw 2 RUN: printf '\10\0\0\0\0\0\0\0' >> %t-foo.profraw 3 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw 4 RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw 5 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw 6 RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw 7 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw 9 RUN: printf '\0\0\4\0\1\0\0\0' >> %t-foo.profraw 10 RUN: printf '\0\0\4\0\2\0\0\0' >> %t-foo.profraw 21 RUN: printf '\3\0foo\0\0\0' >> %t-foo.profraw [all …]
|
| H A D | raw-32-bits-be.test | 1 RUN: printf '\377lprofR\201' > %t 2 RUN: printf '\0\0\0\0\0\0\0\10' >> %t 3 RUN: printf '\0\0\0\0\0\0\0\0' >> %t 4 RUN: printf '\0\0\0\0\0\0\0\2' >> %t 15 RUN: printf '\1\0\0\0' >> %t 16 RUN: printf '\0\0\0\0' >> %t 17 RUN: printf '\0\0\0\0' >> %t 18 RUN: printf '\0\0\0\1' >> %t 24 RUN: printf '\0\0\0\0' >> %t 25 RUN: printf '\0\0\0\0' >> %t [all …]
|
| H A D | raw-32-bits-le.test | 1 RUN: printf '\201Rforpl\377' > %t 2 RUN: printf '\10\0\0\0\0\0\0\0' >> %t 3 RUN: printf '\0\0\0\0\0\0\0\0' >> %t 4 RUN: printf '\2\0\0\0\0\0\0\0' >> %t 15 RUN: printf '\0\0\0\1' >> %t 16 RUN: printf '\0\0\0\0' >> %t 17 RUN: printf '\0\0\0\0' >> %t 18 RUN: printf '\1\0\0\0' >> %t 24 RUN: printf '\0\0\0\0' >> %t 25 RUN: printf '\0\0\0\0' >> %t [all …]
|
| H A D | raw-64-bits-le.test | 1 RUN: printf '\201rforpl\377' > %t 2 RUN: printf '\10\0\0\0\0\0\0\0' >> %t 3 RUN: printf '\0\0\0\0\0\0\0\0' >> %t 4 RUN: printf '\2\0\0\0\0\0\0\0' >> %t 5 RUN: printf '\0\0\0\0\0\0\0\0' >> %t 6 RUN: printf '\3\0\0\0\0\0\0\0' >> %t 7 RUN: printf '\0\0\0\0\0\0\0\0' >> %t 8 RUN: printf '\20\0\0\0\0\0\0\0' >> %t 9 RUN: printf '\0\0\4\0\1\0\0\0' >> %t 10 RUN: printf '\0\0\4\0\2\0\0\0' >> %t [all …]
|
| H A D | raw-64-bits-be.test | 1 RUN: printf '\377lprofr\201' > %t 2 RUN: printf '\0\0\0\0\0\0\0\10' >> %t 3 RUN: printf '\0\0\0\0\0\0\0\0' >> %t 4 RUN: printf '\0\0\0\0\0\0\0\2' >> %t 5 RUN: printf '\0\0\0\0\0\0\0\0' >> %t 6 RUN: printf '\0\0\0\0\0\0\0\3' >> %t 7 RUN: printf '\0\0\0\0\0\0\0\0' >> %t 8 RUN: printf '\0\0\0\0\0\0\0\20' >> %t 9 RUN: printf '\0\0\0\1\0\4\0\0' >> %t 10 RUN: printf '\0\0\0\2\0\4\0\0' >> %t [all …]
|
| H A D | binary-ids-padding.test | 13 RUN: printf '\201rforpl\377' > %t.profraw 14 RUN: printf '\10\0\0\0\0\0\0\0' >> %t.profraw 22 RUN: printf '\2\0\0\0\0\0\0\0' >> %t.profraw 23 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw 24 RUN: printf '\3\0\0\0\0\0\0\0' >> %t.profraw 25 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw 27 RUN: printf '\0\0\4\0\1\0\0\0' >> %t.profraw 28 RUN: printf '\0\0\4\0\2\0\0\0' >> %t.profraw 29 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw 33 RUN: printf '\0\1\2\3\4\5\6\7' >> %t.profraw [all …]
|
| H A D | misaligned-binary-ids-size.test | 1 RUN: printf '\201rforpl\377' > %t.profraw 2 RUN: printf '\10\0\0\0\0\0\0\0' >> %t.profraw 4 RUN: printf '\77\0\0\0\0\0\0\0' >> %t.profraw 5 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw 6 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw 7 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw 8 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw 9 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw 10 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw 11 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw [all …]
|
| /llvm-project-15.0.7/openmp/runtime/test/atomic/ |
| H A D | kmp_atomic_cas_cpt.c | 79 ret++; printf("Error bool_1_cas_cpt no-op: %d != %d\n", co, c1); } in main() 82 if (r) { ret++; printf("Error bool_1_cas_cpt no-op ret: %d\n", r); } in main() 87 if (!r) { ret++; printf("Error bool_1_cas_cpt ret: %d\n", r); } in main() 91 ret++; printf("Error bool_2_cas_cpt no-op: %d != %d\n", so, s1); } in main() 99 if (!r) { ret++; printf("Error bool_2_cas_cpt ret: %d\n", r); } in main() 111 if (!r) { ret++; printf("Error bool_4_cas_cpt ret: %d\n", r); } in main() 122 ret++; printf("Error bool_8_cas_cpt: %lld != %lld\n", lo, l2); } in main() 125 if (!r) { ret++; printf("Error bool_8_cas_cpt ret: %d\n", r); } in main() 194 printf("Error 1 in parallel cpt, %d != %d\n", iv, ic); in main() 221 printf("passed\n"); in main() [all …]
|
| H A D | kmp_atomic_cas.c | 73 ret++; printf("Error bool_1_cas: %d != %d\n", co, c2); } in main() 74 if (!r) { ret++; printf("Error bool_1_cas ret: %d\n", r); } in main() 82 ret++; printf("Error bool_2_cas: %d != %d\n", so, s2); } in main() 83 if (!r) { ret++; printf("Error bool_2_cas ret: %d\n", r); } in main() 91 ret++; printf("Error bool_4_cas: %d != %d\n", io, i2); } in main() 92 if (!r) { ret++; printf("Error bool_4_cas ret: %d\n", r); } in main() 113 ret++; printf("Error val_1_cas: %d != %d\n", co, c1); } in main() 123 ret++; printf("Error val_2_cas: %d != %d\n", so, s1); } in main() 134 ret++; printf("Error val_4_cas: %d != %d\n", io, i1); } in main() 182 printf("passed\n"); in main() [all …]
|
| /llvm-project-15.0.7/lldb/test/API/lang/c/set_values/ |
| H A D | main.c | 6 printf("before (char) i = %c\n", i); in set_char() 13 printf("before (unsigned char) i = %c\n", i); in set_uchar() 20 printf("before (short) i = %i\n", i); in set_short() 27 printf("before (unsigned short) i = %i\n", i); in set_ushort() 34 printf("before (int) i = %i\n", i); in set_int() 41 printf("before (unsigned int) i = %u\n", i); in set_uint() 48 printf("before (long) i = %li\n", i); in set_long() 55 printf("before (unsigned long) i = %lu\n", i); in set_ulong() 62 printf("before (float) i = %g\n", i); in set_float() 69 printf("before (double) i = %g\n", i); in set_double() [all …]
|
| /llvm-project-15.0.7/lldb/test/API/functionalities/breakpoint/inlined_breakpoints/ |
| H A D | basic_type.cpp | 127 std::printf ("%s: a = '" T_PRINTF_FORMAT "'\n", T_CSTR, a); in main() 128 std::printf ("%s*: %p => *a_ptr = '" T_PRINTF_FORMAT "'\n", T_CSTR, a_ptr, *a_ptr); in main() 129 std::printf ("%s&: @%p => a_ref = '" T_PRINTF_FORMAT "'\n", T_CSTR, &a_ref, a_ref); in main() 131 std::printf ("%s[2]: a_array_bounded[0] = '" T_PRINTF_FORMAT "'\n", T_CSTR, a_array_bounded[0]); in main() 132 std::printf ("%s[2]: a_array_bounded[1] = '" T_PRINTF_FORMAT "'\n", T_CSTR, a_array_bounded[1]); in main() 134 …std::printf ("%s[]: a_array_unbounded[0] = '" T_PRINTF_FORMAT "'\n", T_CSTR, a_array_unbounded[0]); in main() 135 …std::printf ("%s[]: a_array_unbounded[1] = '" T_PRINTF_FORMAT "'\n", T_CSTR, a_array_unbounded[1]); in main() 137 …std::printf ("(a_class) a_class_instance.m_a = '" T_PRINTF_FORMAT "'\n", a_class_instance.get_a()); in main() 144 std::printf ("(a_struct_t) a_struct.a = '" T_PRINTF_FORMAT "'\n", a_struct.a); in main() 145 std::printf ("(a_struct_t) a_struct.b = '" T_PRINTF_FORMAT "'\n", a_struct.b); in main() [all …]
|
| /llvm-project-15.0.7/lldb/tools/darwin-threads/ |
| H A D | examine-threads.c | 330 printf("being created by fork"); in main() 333 printf("runnable"); in main() 339 printf("suspended"); in main() 345 printf("unknown"); in main() 351 printf("\n"); in main() 395 printf("\n"); in main() 412 printf("run state is "); in main() 449 printf( in main() 470 printf("\n "); in main() 484 printf("\n\n"); in main() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | predefined-expr.c | 15 int printf(const char *, ...); 18 printf("__func__ %s\n", __func__); in plainFunction() 19 printf("__FUNCTION__ %s\n", __FUNCTION__); in plainFunction() 24 printf("__func__ %s\n", __func__); in externFunction() 25 printf("__FUNCTION__ %s\n", __FUNCTION__); in externFunction() 30 printf("__func__ %s\n", __func__); in privateExternFunction() 31 printf("__FUNCTION__ %s\n", __FUNCTION__); in privateExternFunction() 38 printf("__func__ %s\n", __func__); in functionWithCapturedStmt() 39 printf("__FUNCTION__ %s\n", __FUNCTION__); in functionWithCapturedStmt() 45 printf("__func__ %s\n", __func__); in staticFunction() [all …]
|
| /llvm-project-15.0.7/lldb/tools/compact-unwind/ |
| H A D | compact-unwind-dumper.c | 631 printf( in print_encoding_x86_64() 847 printf( in print_encoding_i386() 952 printf( in print_encoding_arm64() 1090 printf( in print_encoding_armv7() 1135 printf( in print_function_encoding() 1222 printf("\n"); in print_function_encoding() 1304 printf( in print_second_level_index() 1378 printf("\n"); in print_index_sections() 1384 printf("\n"); in print_index_sections() 1446 printf("\n"); in main() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenObjC/ |
| H A D | predefined-expr.m | 14 int printf(const char * _Format, ...); function 22 printf("__func__: %s\n", __func__); 28 printf("__func__: %s\n", __func__); 34 printf("__func__: %s\n", __func__); 40 printf("__func__: %s\n", __func__); 47 printf("__func__: %s\n", __func__); 53 printf("__func__: %s\n", __func__); 59 printf("__func__: %s\n", __func__); 65 printf("__func__: %s\n", __func__); 79 printf("__func__: %s\n", __func__); [all …]
|