Searched refs:printf (Results 1 - 25 of 2866) sorted by relevance

1234567891011>>

/external/clang/test/PCH/
H A Dbuiltins.h2 int printf(char const *, ...);
H A Dbuiltins.c9 printf("Hello, World!");
H A Dpch__VA_ARGS__.c5 #define mylog(...) printf(__VA_ARGS__)
/external/clang/test/Sema/
H A Dformat-strings-size_t.c3 int printf(char const *, ...);
7 printf("%zu", (double)42); // expected-warning {{format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'double'}}
10 printf("%jd", (double)42); // expected-warning {{format specifies type 'intmax_t' (aka 'long') but the argument has type 'double'}}
11 printf("%ju", (double)42); // expected-warning {{format specifies type 'uintmax_t' (aka 'unsigned long') but the argument has type 'double'}}
14 printf("%td", (double)42); // expected-warning {{format specifies type 'ptrdiff_t' (aka 'long') but the argument has type 'double'}}
18 printf("%jn", (long*)0); // no-warning
19 printf("%jn", (unsigned long*)0); // no-warning
20 printf("%jn", (int*)0); // expected-warning{{format specifies type 'intmax_t *' (aka 'long *') but the argument has type 'int *'}}
22 printf("%zn", (long*)0); // no-warning
25 printf("
[all...]
H A Ducn-cstring.c3 int printf(const char *, ...);
8 printf("%s (%zd)\n", "hello \u2192 \u2603 \u2190 world", sizeof("hello \u2192 \u2603 \u2190 world"));
9 printf("%s (%zd)\n", "\U00010400\U0001D12B", sizeof("\U00010400\U0001D12B"));
11 printf("%s\n", "\U"); // expected-error{{\u used with no following hex digits}}
12 printf("%s\n", "\U00"); // expected-error{{incomplete universal character name}}
13 printf("%s\n", "\U0001"); // expected-error{{incomplete universal character name}}
14 printf("%s\n", "\u0001"); // expected-error{{universal character name refers to a control character}}
H A Dformat-string-percentm.c3 // PR 4142 - support glibc extension to printf: '%m' (which prints strerror(errno)).
4 int printf(char const*,...);
6 printf("%m");
H A Dformat-strings-non-iso.c3 int printf(const char *restrict, ...);
10 printf("%qd", (long long)42); // expected-warning{{'q' length modifier is not supported by ISO C}} expected-note{{did you mean to use 'll'?}}
17 printf("%S", L"foo"); // expected-warning{{'S' conversion specifier is not supported by ISO C}}
18 printf("%C", L'x'); // expected-warning{{'C' conversion specifier is not supported by ISO C}}
21 printf("%Li", (long long)42); // expected-warning{{using length modifier 'L' with conversion specifier 'i' is not supported by ISO C}} expected-note{{did you mean to use 'll'?}}
22 printf("%Lo", (long long)42); // expected-warning{{using length modifier 'L' with conversion specifier 'o' is not supported by ISO C}} expected-note{{did you mean to use 'll'?}}
23 printf("%Lu", (long long)42); // expected-warning{{using length modifier 'L' with conversion specifier 'u' is not supported by ISO C}} expected-note{{did you mean to use 'll'?}}
24 printf("%Lx", (long long)42); // expected-warning{{using length modifier 'L' with conversion specifier 'x' is not supported by ISO C}} expected-note{{did you mean to use 'll'?}}
25 printf("%LX", (long long)42); // expected-warning{{using length modifier 'L' with conversion specifier 'X' is not supported by ISO C}} expected-note{{did you mean to use 'll'?}}
28 printf("
[all...]
H A Dformat-strings-int-typedefs.c3 int printf(char const *, ...);
7 printf("%jd", 42.0); // expected-warning {{format specifies type 'intmax_t' (aka 'long long')}}
8 printf("%ju", 42.0); // expected-warning {{format specifies type 'uintmax_t' (aka 'unsigned long long')}}
9 printf("%zu", 42.0); // expected-warning {{format specifies type 'size_t' (aka 'unsigned long')}}
10 printf("%td", 42.0); // expected-warning {{format specifies type 'ptrdiff_t' (aka 'int')}}
11 printf("%lc", 42.0); // expected-warning {{format specifies type 'wint_t' (aka 'int')}}
12 printf("%ls", 42.0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}}
13 printf("%S", 42.0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}}
14 printf("%C", 42.0); // expected-warning {{format specifies type 'wchar_t' (aka 'int')}}
33 printf("
[all...]
H A Dformat-strings-fixit-ssize_t.c11 int printf(char const *, ...);
15 printf("%f", (ssize_t) 42);
18 // CHECK: printf("%zd", (ssize_t) 42);
H A Dattr-format_arg.c3 int printf(const char *, ...);
8 printf("%d", 123);
9 printf("%d %d", 123); // expected-warning{{more '%' conversions than data arguments}}
11 printf(f("%d"), 123);
12 printf(f("%d %d"), 123); // expected-warning{{more '%' conversions than data arguments}}
H A Dformat-strings-enum.c13 EXTERN_C int printf(const char *,...);
20 printf("%d", input); // no-warning
21 printf("%d", Constant); // no-warning
23 printf("%lld", input); // expected-warning{{format specifies type 'long long' but the argument has type 'TestEnum'}}
24 printf("%lld", Constant); // expected-warning{{format specifies type 'long long'}}
31 printf("%u", input); // expected-warning{{format specifies type 'unsigned int' but the argument has type 'LongEnum'}}
32 printf("%u", LongConstant); // expected-warning{{format specifies type 'unsigned int'}}
34 printf("%lu", input);
35 printf("%lu", LongConstant);
H A Dformat-strings-no-fixit.c10 int printf(char const *, ...);
15 printf(kFormat1, 5);
16 printf("%s", 5);
20 printf(kFormat2, p);
21 printf("%.3p", p);
24 printf(kFormat3, "a");
25 printf("%0s", "a");
28 printf(kFormat4, "a");
29 printf("%hhs", "a");
32 printf(kFormat
[all...]
/external/webkit/Tools/android/flex-2.5.4a/MISC/MVS/
H A Dfixit.l14 "action_file_name" printf("actfilnm");
15 "action_out" printf("actnout");
16 "add_accept" printf("addacpt");
17 "all_lower" printf("alllower");
18 "all_upper" printf("allupper");
19 "allocate_array" printf("allocarr");
20 "assoc_rule" printf("asscrule");
21 "backtrack_file" printf("bktrkfil");
22 "backtrack_report" printf("bktrkrep");
23 "bol_needed" printf("bol_nde
[all...]
H A Dunfixit.l17 "actfilnm" printf("action_file_name");
18 "actnout" printf("action_out");
19 "addacpt" printf("add_accept");
20 "alllower" printf("all_lower");
21 "allupper" printf("all_upper");
22 "allocarr" printf("allocate_array");
23 "asscrule" printf("assoc_rule");
24 "bktrkfil" printf("backtrack_file");
25 "bktrkrep" printf("backtrack_report");
26 "bol_nded" printf("bol_neede
[all...]
/external/clang/test/CodeGen/
H A Dbuiltin-rename.c1 // RUN: %clang_cc1 %s -emit-llvm -o - | grep 'declare.*printf' | count 1
4 int printf(const char *, ...);
7 return printf(printf);
H A DPR3589-freestanding-libcalls.c1 // RUN: %clang_cc1 -emit-llvm %s -o - | grep 'declare i32 @printf' | count 1
5 int printf(const char *, ...);
8 printf("hello\n");
H A D2006-01-13-Includes.c4 int printf(const char * restrict format, ...);
7 printf("Hello World\n");
H A D2007-04-14-FNoBuiltin.c1 // RUN: %clang_cc1 -emit-llvm %s -O2 -fno-builtin -o - | grep call.*printf
4 extern int printf(const char*, ...);
6 printf("%s\n",msg);
H A D2002-04-07-SwitchStmt.c3 int printf(const char *, ...);
13 printf("3");
14 case 4: printf("4");
H A Dpredefined-expr.c12 int printf(const char *, ...);
15 printf("__func__ %s\n", __func__);
16 printf("__FUNCTION__ %s\n", __FUNCTION__);
17 printf("__PRETTY_FUNCTION__ %s\n\n", __PRETTY_FUNCTION__);
21 printf("__func__ %s\n", __func__);
22 printf("__FUNCTION__ %s\n", __FUNCTION__);
23 printf("__PRETTY_FUNCTION__ %s\n\n", __PRETTY_FUNCTION__);
27 printf("__func__ %s\n", __func__);
28 printf("__FUNCTION__ %s\n", __FUNCTION__);
29 printf("__PRETTY_FUNCTION_
[all...]
/external/e2fsprogs/misc/
H A Dprofile-to-c.awk3 printf("const char *mke2fs_default_profile = \n");
7 printf(" \"%s\\n\"\n", $0);
11 printf(";\n", str)
/external/clang/test/CodeGenCXX/
H A D2007-04-14-FNoBuiltin.cpp4 extern "C" int printf(const char*, ...);
6 // CHECK: call{{.*}}printf
7 printf("%s\n",msg);
/external/valgrind/main/VEX/test/
H A Dfpucw.c26 printf("default\n");
28 printf("\n");
30 printf("exns\n");
32 printf("\n");
34 printf("precision\n");
36 printf("\n");
38 printf("rounding\n");
40 printf("\n");
H A Dmxcsr.c28 printf("default\n");
30 printf("\n");
32 printf("exns\n");
34 printf("\n");
36 printf("daz\n");
38 printf("\n");
40 printf("fz\n");
42 printf("\n");
/external/valgrind/main/none/tests/s390x/
H A Dfgx.c14 printf("test LGDR\n\n");
15 printf("before g = %ld\n", g);
16 printf("before f = %a\n", f);
17 printf("copy f to g\n");
19 printf("after g = %16.16lx\n", g); /* 0x0x0x0...... */
20 printf("after f = %a\n", f);
22 printf("\ntest LDGR\n\n");
24 printf("before g = %16.16lx\n", g); /* 0x0x0x0...... */
25 printf("before f = %a\n", f);
26 printf("cop
[all...]

Completed in 516 milliseconds

1234567891011>>