Home
last modified time | relevance | path

Searched full:printf (Results 1 – 25 of 2797) sorted by relevance

12345678910>>...112

/llvm-project/clang/test/Sema/
H A Dformat-fixed-point.c4 int printf(const char *restrict, ...);
45printf("%r", s); // expected-warning{{format specifies type '_Fract' but the argument has type '… in test_invalid_args()
46printf("%r", us); // expected-warning{{format specifies type '_Fract' but the argument has type '… in test_invalid_args()
47printf("%r", i); // expected-warning{{format specifies type '_Fract' but the argument has type '… in test_invalid_args()
48printf("%r", ui); // expected-warning{{format specifies type '_Fract' but the argument has type '… in test_invalid_args()
49printf("%r", l); // expected-warning{{format specifies type '_Fract' but the argument has type '… in test_invalid_args()
50printf("%r", ul); // expected-warning{{format specifies type '_Fract' but the argument has type '… in test_invalid_args()
51printf("%r", fl); // expected-warning{{format specifies type '_Fract' but the argument has type '… in test_invalid_args()
52printf("%r", d); // expected-warning{{format specifies type '_Fract' but the argument has type '… in test_invalid_args()
53printf("%r", c); // expected-warning{{format specifies type '_Fract' but the argument has type '… in test_invalid_args()
[all …]
H A Dformat-strings-fixit.c11 int printf(char const *, ...);
21 printf("%s", (int) 123); in test()
22 printf("abc%0f", "testing testing 123"); in test()
23 printf("%u", (long) -12); in test()
24 printf("%b", (long) -13); in test()
25 printf("%d", (long) -14); in test()
26 printf("%p", 123); in test()
27 printf("%c\n", "x"); in test()
28 printf("%c\n", 1.23); in test()
31 printf("%+.2d", (unsigned long long) 123456); in test()
[all …]
H A Dformat-strings.c13 int printf(const char *restrict, ...); // expected-note{{passing argument to parameter here}}
33 printf(s); // expected-warning {{format string is not a string literal}} in check_string_literal()
59 printf(fmt, 1, 2); // expected-warning{{data argument not used}} in check_string_literal()
61 printf("abc" in check_string_literal()
63 printf("abc\ in check_string_literal()
70 printf("%*d", (unsigned) 1, 1); // no-warning in check_string_literal()
82 printf(s); // expected-warning {{format string is not a string literal}} in check_string_literal2()
101 printf(i == 1 ? "yes" : "no"); // no-warning in check_conditional_literal()
102 printf(i == 0 ? (i == 1 ? "yes" : "no") : "dont know"); // no-warning in check_conditional_literal()
103printf(i == 0 ? (i == 1 ? s : "no") : "dont know"); // expected-warning{{format string is not a st… in check_conditional_literal()
[all …]
H A Dformat-strings-enum-fixed-type.cpp11 EXTERN_C int printf(const char *,...);
19printf("%hhd", input); // expected-warning{{format specifies type 'char' but the argument has unde… in test()
20 printf("%hhd", Constant); // expected-warning{{format specifies type 'char'}} in test()
22 printf("%hd", input); // no-warning in test()
23 printf("%hd", Constant); // no-warning in test()
26 printf("%d", input); // no-warning in test()
27 printf("%d", Constant); // no-warning in test()
29printf("%lld", input); // expected-warning{{format specifies type 'long long' but the argument has… in test()
30 printf("%lld", Constant); // expected-warning{{format specifies type 'long long'}} in test()
37printf("%u", input); // expected-warning{{format specifies type 'unsigned int' but the argument ha… in testLong()
[all …]
H A Dformat-strings-ms.c4 int printf(const char *format, ...) __attribute__((format(printf, 1, 2)));
12 printf("%Id", i32); // expected-warning{{'I' length modifier is not supported by ISO C}} in non_iso_warning_test()
13 printf("%I32d", i32); // expected-warning{{'I32' length modifier is not supported by ISO C}} in non_iso_warning_test()
14 printf("%I64d", i64); // expected-warning{{'I64' length modifier is not supported by ISO C}} in non_iso_warning_test()
15 printf("%wc", c); // expected-warning{{'w' length modifier is not supported by ISO C}} in non_iso_warning_test()
16 printf("%Z", p); // expected-warning{{'Z' conversion specifier is not supported by ISO C}} in non_iso_warning_test()
23printf("val = %I64d\n", val); // expected-warning{{format specifies type '__int64' (aka 'long long… in signed_test()
25printf("val = %I32d\n", bigval); // expected-warning{{format specifies type '__int32' (aka 'int') … in signed_test()
26printf("val = %Id\n", bigval); // expected-warning{{format specifies type '__int32' (aka 'int') bu… in signed_test()
31printf("val = %I64u\n", val); // expected-warning{{format specifies type 'unsigned __int64' (aka '… in unsigned_test()
[all …]
/llvm-project/openmp/libompd/gdb-plugin/
H A DompdAPITests.c57 7. printf("Parallel level 1, thread num = %d",
75 printf("Testing \"ompd_get_thread_handle\"...\n"); in test_ompd_get_thread_handle()
89 printf("Test: With Correct Arguments.\n"); in test_ompd_get_thread_handle()
95 printf("Success. ompd_rc_unavailable, OpenMP is disabled.\n"); in test_ompd_get_thread_handle()
96 printf("This is not a Parallel Region, No more testing is possible.\n"); in test_ompd_get_thread_handle()
99 printf("Failed, with return code = %d\n", rc); in test_ompd_get_thread_handle()
101 printf("Success.\n"); in test_ompd_get_thread_handle()
105 printf("Test: Unsupported thread kind.\n"); in test_ompd_get_thread_handle()
109 printf("Failed, with return code = %d\n", rc); in test_ompd_get_thread_handle()
111 printf("Success.\n"); in test_ompd_get_thread_handle()
[all …]
/llvm-project/llvm/test/tools/llvm-profdata/
H A Draw-two-profiles.test1 // gnuwin32 printf does not work for this test because it will print \15 (CR)
4 RUN: printf '\201rforpl\377' > %t-foo.profraw
5 RUN: printf '\12\0\0\0\0\0\0\0' >> %t-foo.profraw
6 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
7 RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
8 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
9 RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
10 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
11 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
12 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
[all …]
H A Draw-32-bits-be.test1 // gnuwin32 printf does not work for this test because it will print \15 (CR)
5 RUN: printf '\377lprofR\201' > %t
6 RUN: printf '\0\0\0\0\0\0\0\12' >> %t
7 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
8 RUN: printf '\0\0\0\0\0\0\0\2' >> %t
9 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
10 RUN: printf '\0\0\0\0\0\0\0\3' >> %t
11 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
12 RUN: printf '\0\0\0\0\0\0\0\4' >> %t
13 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
[all …]
H A Draw-64-bits-be.test1 // gnuwin32 printf does not work for this test because it will print \15 (CR)
4 RUN: printf '\377lprofr\201' > %t
5 RUN: printf '\0\0\0\0\0\0\0\12' >> %t
6 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
7 RUN: printf '\0\0\0\0\0\0\0\2' >> %t
8 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
9 RUN: printf '\0\0\0\0\0\0\0\3' >> %t
10 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
11 RUN: printf '\0\0\0\0\0\0\0\4' >> %t
12 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
[all …]
H A Draw-64-bits-le.test1 // gnuwin32 printf does not work for this test because it will print \15 (CR)
4 RUN: printf '\201rforpl\377' > %t
5 RUN: printf '\12\0\0\0\0\0\0\0' >> %t
6 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
7 RUN: printf '\2\0\0\0\0\0\0\0' >> %t
8 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
9 RUN: printf '\3\0\0\0\0\0\0\0' >> %t
10 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
11 RUN: printf '\4\0\0\0\0\0\0\0' >> %t
12 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
[all …]
H A Draw-32-bits-le.test1 // gnuwin32 printf does not work for this test because it will print \15 (CR)
4 RUN: printf '\201Rforpl\377' > %t
5 RUN: printf '\12\0\0\0\0\0\0\0' >> %t
6 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
7 RUN: printf '\2\0\0\0\0\0\0\0' >> %t
8 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
9 RUN: printf '\3\0\0\0\0\0\0\0' >> %t
10 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
11 RUN: printf '\4\0\0\0\0\0\0\0' >> %t
12 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
[all …]
H A Dbinary-ids-padding.test17 // gnuwin32 printf does not work for this test because it will print \15 (CR)
20 RUN: printf '\201rforpl\377' > %t.profraw
21 RUN: printf '\12\0\0\0\0\0\0\0' >> %t.profraw
28 RUN: printf '\100\0\0\0\0\0\0\0' >> %t.profraw
29 RUN: printf '\2\0\0\0\0\0\0\0' >> %t.profraw
30 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
31 RUN: printf '\3\0\0\0\0\0\0\0' >> %t.profraw
32 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
33 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
34 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
[all …]
H A Dmalformed-num-counters-zero.test17 // gnuwin32 printf does not work for this test because it will print \15 (CR)
20 RUN: printf '\201rforpl\377' > %t.profraw
21 RUN: printf '\12\0\0\0\0\0\0\0' >> %t.profraw
22 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
23 RUN: printf '\1\0\0\0\0\0\0\0' >> %t.profraw
24 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
25 RUN: printf '\1\0\0\0\0\0\0\0' >> %t.profraw
26 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
27 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
28 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
[all …]
H A Dmalformed-not-space-for-another-header.test17 // gnuwin32 printf does not work for this test because it will print \15 (CR)
20 RUN: printf '\201rforpl\377' > %t.profraw
21 RUN: printf '\12\0\0\0\0\0\0\0' >> %t.profraw
22 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
23 RUN: printf '\1\0\0\0\0\0\0\0' >> %t.profraw
24 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
25 RUN: printf '\1\0\0\0\0\0\0\0' >> %t.profraw
26 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
27 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
28 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
[all …]
H A Dmalformed-ptr-to-counter-array.test17 // gnuwin32 printf does not work for this test because it will print \15 (CR)
20 RUN: printf '\201rforpl\377' > %t.profraw
21 RUN: printf '\12\0\0\0\0\0\0\0' >> %t.profraw
22 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
23 RUN: printf '\1\0\0\0\0\0\0\0' >> %t.profraw
24 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
25 RUN: printf '\2\0\0\0\0\0\0\0' >> %t.profraw
26 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
27 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
28 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
[all …]
H A Dmisaligned-binary-ids-size.test1 // gnuwin32 printf does not work for this test because it will print \15 (CR)
4 RUN: printf '\201rforpl\377' > %t.profraw
5 RUN: printf '\12\0\0\0\0\0\0\0' >> %t.profraw
7 RUN: printf '\77\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
12 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
13 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
[all …]
/llvm-project/clang/test/SemaOpenCL/
H A Dprintf-format-strings.cl27 int printf(__constant const char* st, ...) __attribute__((format(printf, 1, 2)));
33 printf("%v4lf", arg_d);
34printf("%v4lf", arg_f); // expected-warning{{format specifies type 'double __attribute__((ext_vect…
35printf("%v4lf", arg_h); // expected-warning{{format specifies type 'double __attribute__((ext_vect…
37 printf("%v4lF", arg_d);
38printf("%v4lF", arg_f); // expected-warning{{format specifies type 'double __attribute__((ext_vect…
39printf("%v4lF", arg_h); // expected-warning{{format specifies type 'double __attribute__((ext_vect…
41 printf("%v4le", arg_d);
42printf("%v4le", arg_f); // expected-warning{{format specifies type 'double __attribute__((ext_vect…
43printf("%v4le", arg_h); // expected-warning{{format specifies type 'double __attribute__((ext_vect…
[all …]
H A Dformat-strings-fixit.cl17 int printf(__constant const char* st, ...) __attribute__((format(printf, 1, 2)));
21 printf("%v4f", (int4) 123);
22 // CHECK: printf("%v4hld", (int4) 123);
24 printf("%v8d", (int4) 123);
25 // CHECK: printf("%v4hld", (int4) 123);
27 printf("%v4d", (int8) 123);
28 // CHECK: printf("%v8hld", (int8) 123);
30 printf("%v4f", (int8) 123);
31 // CHECK: printf("%v8hld", (int8) 123);
33 printf("%v4ld", (int8) 123);
[all …]
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Duse-std-print.cpp28 printf("Hello");
29 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::print' instead of 'printf' [modernize-use-std-print] in printf_newline()
34 printf("Hello\n"); in printf_newline()
35 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'printf' [modernize-use-std-print] in printf_newline()
38 printf("Split" "\n"); in printf_newline()
39 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'printf' [modernize-use-std-print] in printf_newline()
42 printf("Double\n\n");
43 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::println' instead of 'printf' [modernize-use-std-print] in printf_deceptive_newline()
48 printf("Hello\\n"); in printf_deceptive_newline()
49 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: use 'std::print' instead of 'printf' [moderniz in printf_deceptive_newline()
[all...]
/llvm-project/clang/test/CodeGenCXX/
H A Dpredefined-expr.cpp103 int printf(const char * _Format, ...);
108 printf("__func__ %s\n", __func__); in topLevelNamespaceFunction()
109 printf("__FUNCTION__ %s\n", __FUNCTION__); in topLevelNamespaceFunction()
110 printf("__PRETTY_FUNCTION__ %s\n\n", __PRETTY_FUNCTION__); in topLevelNamespaceFunction()
119 printf("__func__ %s\n", __func__); in anonymousNamespaceFunction()
120 printf("__FUNCTION__ %s\n", __FUNCTION__); in anonymousNamespaceFunction()
121 printf("__PRETTY_FUNCTION__ %s\n\n", __PRETTY_FUNCTION__); in anonymousNamespaceFunction()
133 printf("__func__ %s\n", __func__); in classTemplateFunction()
134 printf("__FUNCTION__ %s\n", __FUNCTION__); in classTemplateFunction()
135 printf("__PRETTY_FUNCTION__ %s\n\n", __PRETTY_FUNCTION__); in classTemplateFunction()
[all …]
/llvm-project/clang/test/CodeGenObjC/
H A Dpredefined-expr.m14 int printf(const char * _Format, ...); function
22 printf("__func__: %s\n", __func__);
23 printf("__FUNCTION__: %s\n", __FUNCTION__);
24 printf("__PRETTY_FUNCTION__: %s\n\n", __PRETTY_FUNCTION__);
28 printf("__func__: %s\n", __func__);
29 printf("__FUNCTION__: %s\n", __FUNCTION__);
30 printf("__PRETTY_FUNCTION__: %s\n\n", __PRETTY_FUNCTION__);
34 printf("__func__: %s\n", __func__);
35 printf("__FUNCTION__: %s\n", __FUNCTION__);
36 printf("__PRETTY_FUNCTION__: %s\n\n", __PRETTY_FUNCTION__);
[all …]
/llvm-project/polly/lib/External/isl/interface/
H A Dpython.cc67 printf(", "); in print_method_arguments()
68 printf("arg%d", i); in print_method_arguments()
84 printf(" @staticmethod\n"); in print_method_def()
90 printf(" def %s", s); in print_method_def()
100 printf("("); in print_method_header()
102 printf("):\n"); in print_method_header()
111 printf("%*s", indent, " "); in print_indent()
134 printf(fmt, pos); in print_type_check()
135 printf(".__class__ is %s:\n", type.c_str()); in print_type_check()
137 printf(fmt, pos); in print_type_check()
[all …]
/llvm-project/openmp/runtime/test/atomic/
H A Dkmp_atomic_cas_cpt.c79 ret++; printf("Error bool_1_cas_cpt no-op: %d != %d\n", co, c1); } in main()
81 ret++; printf("Error bool_1_cas_cpt no-op cpt: %d != %d\n", cv, co); } in main()
82 if (r) { ret++; printf("Error bool_1_cas_cpt no-op ret: %d\n", r); } in main()
85 if (co != c2) { ret++; printf("Error bool_1_cas_cpt: %d != %d\n", co, c2); } in main()
86 if (cv != 0) { ret++; printf("Error bool_1_cas_cpt cpt: %d != %d\n", cv, 0); } 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()
93 ret++; printf("Error bool_2_cas_cpt no-op cpt: %d != %d\n", sv, so); } in main()
94 if (r) { ret++; printf("Error bool_2_cas_cpt no-op ret: %d\n", r); } in main()
97 if (so != s2) { ret++; printf("Error bool_2_cas_cpt: %d != %d\n", so, s2); } in main()
[all …]
/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_report.cpp105 Printf(" [failed to restore the stack]\n\n"); in PrintStack()
115 Printf("%s\n", res.data()); in PrintStack()
117 Printf("\n"); in PrintStack()
123 Printf(" (mutexes:"); in PrintMutexSet()
125 Printf(" %s M%u", m.write ? "write" : "read", m.id); in PrintMutexSet()
126 Printf(i == mset.Size() - 1 ? ")" : ","); in PrintMutexSet()
145 Printf("%s", d.Access()); in PrintMop()
147 Printf(" %s of size %d at %p by %s", in PrintMop()
154 Printf(" %s access of %s at %p by %s", in PrintMop()
159 Printf(":\n"); in PrintMop()
[all …]
/llvm-project/lldb/test/API/functionalities/breakpoint/inlined_breakpoints/
H A Dbasic_type.cpp6 // T_PRINTF_FORMAT defined if T can be printed with printf
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()
138 …std::printf ("(a_class) a_class_instance.m_b = '" T_PRINTF_FORMAT "'\n", a_class_instance.get_b()); in main()
[all …]

12345678910>>...112