/external/clang/test/Sema/ |
D | format-strings-scanf.c | 12 int scanf(const char * restrict, ...) ; 21 scanf(s, i); // expected-warning{{ormat string is not a string literal}} in test() 22 scanf("%0d", i); // expected-warning{{zero field width in scanf format string is unused}} in test() 23 scanf("%00d", i); // expected-warning{{zero field width in scanf format string is unused}} in test() 24 …scanf("%d%[asdfasdfd", i, s); // expected-warning{{no closing ']' for '%[' in scanf format string}} in test() 27 scanf ("%" "hu" "\n", &s_x); // no-warning in test() 28 scanf("%y", i); // expected-warning{{invalid conversion specifier 'y'}} in test() 29 scanf("%%"); // no-warning in test() 30 scanf("%%%1$d", i); // no-warning in test() 31 scanf("%1$d%%", i); // no-warning in test() [all …]
|
D | format-strings-fixit.c | 99 int scanf(char const *, ...); 123 scanf("%lf", str); in test2() 124 scanf("%lf", vstr); in test2() 125 scanf("%ls", str); in test2() 126 scanf("%ls", str); in test2() 129 scanf("%f", &shortVar); in test2() 130 scanf("%f", &uShortVar); in test2() 131 scanf("%p", &intVar); in test2() 132 scanf("%f", intAVar); in test2() 133 scanf("%f", intSAParm); in test2() [all …]
|
D | format-strings-ms.c | 5 int scanf(const char * restrict, ...) ; 44 scanf("%wc", &c); in w_test() 45 scanf("%wC", &c); in w_test() 46 scanf("%C", &c); in w_test() 47 scanf("%ws", s); in w_test() 48 scanf("%wS", s); in w_test() 49 scanf("%S", s); in w_test() 58 …scanf("%wc", &bad); // expected-warning{{format specifies type 'wchar_t *' (aka 'unsigned short *'… in w_test() 59 …scanf("%wC", &bad); // expected-warning{{format specifies type 'wchar_t *' (aka 'unsigned short *'… in w_test() 60 …scanf("%C", &bad); // expected-warning{{format specifies type 'wchar_t *' (aka 'unsigned short *')… in w_test() [all …]
|
D | format-strings-c90.c | 4 int scanf(const char * restrict, ...); 8 scanf("%as", sp); /* expected-warning{{'a' length modifier is not supported by ISO C}} */ in foo() 9 scanf("%a[abc]", sp); /* expected-warning{{'a' length modifier is not supported by ISO C}} */ in foo() 12 scanf("%a", fp); in foo() 13 scanf("%afoobar", fp); in foo() 20 scanf("%da", ip); in foo() 23 …scanf("%as", fp); /* expected-warning{{format specifies type 'char **' but the argument has type '… in foo() 25 …scanf("%aS", fp); /* expected-warning{{format specifies type 'wchar_t **' (aka 'int **') but the a… in foo() 28 …scanf("%a[abc]", fp); /* expected-warning{{format specifies type 'char **' but the argument has ty… in foo()
|
D | format-strings-int-typedefs.c | 4 int scanf(char const *, ...); 16 scanf("%jd", 0); // expected-warning {{format specifies type 'intmax_t *' (aka 'long long *')}} in test() 17 …scanf("%ju", 0); // expected-warning {{format specifies type 'uintmax_t *' (aka 'unsigned long lon… in test() 18 scanf("%zu", 0); // expected-warning {{format specifies type 'size_t *' (aka 'unsigned long *')}} in test() 19 scanf("%td", 0); // expected-warning {{format specifies type 'ptrdiff_t *' (aka 'int *')}} in test() 20 scanf("%lc", 0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}} in test() 21 scanf("%ls", 0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}} in test() 22 scanf("%S", 0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}} in test() 23 scanf("%C", 0); // expected-warning {{format specifies type 'wchar_t *' (aka 'int *')}} in test()
|
D | format-strings-gnu.c | 10 int scanf(const char * restrict, ...) ; 51 scanf("%Ld", y); // no-warning in scanf_longlong() 52 scanf("%Lu", y); // no-warning in scanf_longlong() 53 scanf("%Lx", y); // no-warning in scanf_longlong() 54 scanf("%Ld", x); // no-warning in scanf_longlong() 55 scanf("%Lu", x); // no-warning in scanf_longlong() 56 scanf("%Lx", x); // no-warning in scanf_longlong() 57 …scanf("%Ls", "hello"); // expected-warning {{length modifier 'L' results in undefined behavior or … in scanf_longlong()
|
D | format-strings-darwin.c | 11 int scanf(const char * restrict, ...) ; 57 …scanf("%hD", x); // expected-warning{{conversion specifier is not supported by ISO C}} expected-no… in testScanf() 58 …scanf("%lD", y); // expected-warning{{conversion specifier is not supported by ISO C}} expected-no… in testScanf() 59 …scanf("%hU", x); // expected-warning{{conversion specifier is not supported by ISO C}} expected-no… in testScanf() 60 …scanf("%lU", y); // expected-warning{{conversion specifier is not supported by ISO C}} expected-no… in testScanf() 61 …scanf("%hO", x); // expected-warning{{conversion specifier is not supported by ISO C}} expected-no… in testScanf() 62 …scanf("%lO", y); // expected-warning{{conversion specifier is not supported by ISO C}} expected-no… in testScanf()
|
D | format-strings-non-iso.c | 4 int scanf(const char * restrict, ...); 11 …scanf("%qd", (long long *)0); // expected-warning{{'q' length modifier is not supported by ISO C}}… in f() 14 scanf("%ms", &cp); // expected-warning{{'m' length modifier is not supported by ISO C}} in f()
|
D | format-strings-no-fixit.c | 11 int scanf(char const *, ...); 37 scanf(kFormat6, i); in pr9751() 38 scanf("%00d", i); in pr9751()
|
/external/clang/test/Analysis/ |
D | taint-generic.c | 3 int scanf(const char *restrict format, ...); 38 scanf("%d", &n); in bufferScanfDirect() 44 scanf("%d", &n); in bufferScanfArithmetic1() 51 scanf("%d", &n); in bufferScanfArithmetic2() 58 scanf("%d", &n); in bufferScanfAssignment() 68 …scanf("%d", t); // expected-warning {{format specifies type 'int *' but the argument has type 'int… in scanfArg() 113 scanf("%s", addr); in testTaintSystemCall() 125 scanf("%s", addr); in testTaintSystemCall2() 134 scanf("%s %d", addr, &numt); in testTaintSystemCall3() 141 scanf("%zd", &ts); in testTaintedBufferSize() [all …]
|
D | taint-tester.c | 17 scanf("%d", &n); in taintTracking() 31 scanf("%p", &ptr); in taintTracking() 43 scanf("%p", &xyPtr); in taintTracking() 51 scanf("%d", &xy.y); in taintTracking() 52 scanf("%d", &xy.x); in taintTracking() 57 scanf("%d %d", &xy.y, &xy.x); in taintTracking() 66 scanf("%d", &x); in BitwiseOp() 180 scanf("%s", s); in atoiTest()
|
D | global_region_invalidation.mm | 81 scanf("%d", &tmp); 89 scanf("%d", &tmp); 97 scanf("%d", &i); 103 scanf("%d", &i); 113 scanf("%d", &tmp); 121 scanf("%d", &tmp); 128 scanf("%d", &i); 134 scanf("%d", &i);
|
/external/clang/test/SemaCXX/ |
D | format-strings.cpp | 6 extern int scanf(const char *restrict, ...); 12 scanf("%as", sp); // expected-warning{{'a' length modifier is not supported by ISO C}} in f() 16 scanf("%afoobar", fp); in f() 28 int scanf(const char *, ...) __attribute__((format(scanf, 2, 3))); 38 foo.scanf("%d"); // expected-warning{{more '%' conversions than data arguments}} in h()
|
D | format-strings-0x.cpp | 4 extern int scanf(const char *restrict, ...); 9 …scanf("%as", sp); // expected-warning{{format specifies type 'float *' but the argument has type '… in f() 12 …scanf("%p", sp); // expected-warning{{format specifies type 'void **' but the argument has type '… in f() 15 scanf("%afoobar", fp); in f()
|
D | format-strings-0x-nopedantic.cpp | 4 extern int scanf(const char *restrict, ...);
|
/external/ceres-solver/examples/ |
D | circle_fit.cc | 114 if (scanf("%lg %lg %lg", &x, &y, &r) != 3) { in main() 139 while (scanf("%lf %lf\n", &xx, &yy) == 2) { in main()
|
/external/bison/lib/ |
D | stdio.in.h | 994 # undef scanf 996 # define scanf __scanf__ 1004 _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...)); 1007 # undef scanf 1008 # define scanf rpl_scanf 1010 _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...) 1013 _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...)); 1016 _GL_CXXALIAS_SYS (scanf, int, (const char *format, ...)); 1018 _GL_CXXALIASWARN (scanf);
|
/external/bison/linux-lib/ |
D | stdio.h | 1306 # undef scanf 1308 # define scanf __scanf__ 1316 _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...)); 1319 # undef scanf 1320 # define scanf rpl_scanf 1322 _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...) 1325 _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...)); 1328 _GL_CXXALIAS_SYS (scanf, int, (const char *format, ...)); 1330 _GL_CXXALIASWARN (scanf);
|
/external/bison/darwin-lib/ |
D | stdio.h | 1306 # undef scanf 1308 # define scanf __scanf__ 1316 _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...)); 1319 # undef scanf 1320 # define scanf rpl_scanf 1322 _GL_FUNCDECL_RPL (scanf, int, (const char *format, ...) 1325 _GL_CXXALIAS_RPL (scanf, int, (const char *format, ...)); 1328 _GL_CXXALIAS_SYS (scanf, int, (const char *format, ...)); 1330 _GL_CXXALIASWARN (scanf);
|
/external/compiler-rt/test/asan/TestCases/Windows/ |
D | shadow_mapping_failure.cc | 10 scanf("%s", bigchunk); in main()
|
/external/libxml2/ |
D | trio.h | 190 # undef scanf 191 # define scanf trio_scanf macro
|
/external/aac/libSYS/include/ |
D | cmdl_parser.h | 157 #define _tscanf scanf
|
/external/clang/test/Analysis/Inputs/ |
D | system-header-simulator.h | 21 int scanf(const char *restrict format, ...);
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_interceptors_format.inc | 144 // Printf promotes floats to doubles but scanf does not 172 // Parse scanf format string. If a valid directive in encountered, it is 244 // if scanf will parse it as POSIX %a [h-j %d ] or 298 // Common part of *scanf interceptors. 327 Report("WARNING: unexpected format specifier in scanf interceptor: "
|
/external/libcxx/include/ |
D | cstdio | 59 int scanf(const char* restrict format, ...); 160 using ::scanf;
|