Home
last modified time | relevance | path

Searched refs:__format__ (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/clang/test/Sema/
H A Dblock-printf-attribute-1.c6 …void (^b) (int arg, const char * format, ...) __attribute__ ((__format__ (__printf__, 1, 3))) = … in main()
7 …^ __attribute__ ((__format__ (__printf__, 1, 3))) (int arg, const char * format, ...) {}; // expec… in main()
9 …g, const char * format, ...) __attribute__ ((__format__ (__printf__, 2, 3))) = ^ __attribute__ ((_… in main()
17 …r *, va_list, const char *, ...) __attribute__((__format__(__printf__, 1, 0))) __attribute__((__fo… in multi_attr()
18 …^ __attribute__((__format__(__printf__, 1, 0))) __attribute__((__format__(__scanf__, 3, 4))) (cons… in multi_attr()
H A Dattr-format.c22 int (*printf)(const char *format, ...) __attribute__((__format__(printf, 1, 2))); // no-error
23 …int (*printf2)(double format, ...) __attribute__((__format__(printf, 1, 2))); // expected-error {{…
44 #define __printf0like(fmt, va) __attribute__((__format__(__printf0__, fmt, va)))
77 __attribute__((__format__(__gcc_diag__, 1, 2)));
79 __attribute__((__format__(__gcc_cdiag__, 1, 2)));
81 __attribute__((__format__(__gcc_cxxdiag__, 1, 2)));
83 __attribute__((__format__(__gcc_tdiag__, 1, 2)));
H A Dformat-strings.c77 __attribute__((__format__ (__printf__, 2, 4)))
491 __attribute__((__format__(__printf__, 1, 0)))
492 __attribute__((__format__(__scanf__, 3, 4)));
690 __attribute__((__format__(__printf__, 1, 3)));
692 __attribute__((__format__(__scanf__, 2, 3)));
695 __attribute__((__format__(__scanf__, 2, 3)));
697 __attribute__((__format__(__printf__, 1, 3)));
749 __attribute__((__format__(__printf__, 1, 3)));
801 void __attribute__((__format__(__printf__, 1, 2))) (^printf_arg1)( in test_block()
813 void __attribute__((__format__(__printf__, 2, 3))) (^printf_arg2)( in test_block()
[all …]
H A Dno-format-y2k-turnsoff-format.c4 void foo(const char *, ...) __attribute__((__format__ (__printf__, 1, 2)));
H A Ddeclspec.c6 void foof(const char *, ...) __attribute__((__format__(__printf__, 1, 2))), barf (void);
H A Dformat-strings-freebsd.c7 int freebsd_kernel_printf(const char *, ...) __attribute__((__format__(__freebsd_kprintf__, 1, 2)));
H A Dformat-strings-scanf.c32 int my_scanf(const char * restrict, ...) __attribute__((__format__(__scanf__, 1, 2)));
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dformat-strings.cpp54 int test_null_format(const char *format, ...) __attribute__((__format__ (__printf__, 1, 2)));
153 …void func1(const char *, ...) __attribute__((__format__(printf, 1, 2))); // expected-error {{forma…
154 void (*func2)(const char *, ...) __attribute__((__format__(printf, 1, 2)));
155 static void (*func3)(const char *, ...) __attribute__((__format__(printf, 1, 2)));
156 static void func4(const char *, ...) __attribute__((__format__(printf, 1, 2)));
H A Dprintf-block.cpp5 …^block) (int, const char *,...) __attribute__((__format__(__printf__,2,3))) = ^ __attribute__((__f…
H A Dprintf-cstr.cpp74 Printf(const char *,...) __attribute__((__format__(__printf__,2,3)));
/llvm-project-15.0.7/clang/test/Parser/
H A Dcxx-attributes.cpp5 __attribute__ (( __format__(__printf__,2,3) )) = 0;
7 __attribute__ (( __format__(__printf__,2,3) )) {} in f2()
/llvm-project-15.0.7/clang/test/ASTMerge/attr/Inputs/
H A DFormatAttr.cpp1 int foo(const char *fmt, ...) __attribute__((__format__(__scanf__, 1, 2)));
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/google/
H A Druntime-int.cpp76 __attribute__((__format__ (__printf__, 1, 2)))
/llvm-project-15.0.7/lldb/include/lldb/Utility/
H A DStream.h136 __attribute__((__format__(__printf__, 2, 3)));
/llvm-project-15.0.7/clang/test/Analysis/
H A Dblocks.m48 …nt asl, aslmsg msg, int level, const char *format, ...) __attribute__((__format__ (__printf__, 4, …
/llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-port.h672 __attribute__((__format__(__MINGW_PRINTF_FORMAT, string_index, \
676 __attribute__((__format__(__printf__, string_index, first_to_check)))
/llvm-project-15.0.7/third-party/benchmark/tools/gbench/
H A Dreport.py24 def __format__(self, format): member in BenchmarkColor
/llvm-project-15.0.7/libcxx/include/
H A D__config1171 __attribute__((__format__(archetype, format_string_index, first_format_arg_index)))
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DAttrDocs.td3117 __attribute__((__format__ (__scanf__, 1, 3)))
3135 __attribute__((__format__ (__printf__, 1, 3)))
3155 __attribute__((__format__(__printf__, 1, 2)))