Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 1170) sorted by relevance

12345678910>>...47

/minix/external/bsd/llvm/dist/clang/unittests/Format/
H A DFormatTest.cpp18 namespace format { namespace
302 format( in TEST_F()
1458 format("/* " in TEST_F()
1524 format("{\n" in TEST_F()
1541 format("{\n" in TEST_F()
1565 format("{\n" in TEST_F()
4464 format("aaaaaa =" in TEST_F()
6338 format( in TEST_F()
6472 format( in TEST_F()
9236 format( in TEST_F()
[all …]
/minix/external/bsd/llvm/dist/clang/test/Sema/
H A Dattr-format.c5 void a(const char *a, ...) __attribute__((format(printf, 1,2))); // no-error
12 void f(xpto c, va_list list) __attribute__((format(printf, 1, 0))); // no-error
13 void g(xpto c) __attribute__((format(printf, 1, 0))); // no-error
15 void y(char *str) __attribute__((format(strftime, 1,0))); // no-error
18 int (*f_ptr)(char*,...) __attribute__((format(printf, 1,2))); // no-error
22 int (*printf)(const char *format, ...) __attribute__((__format__(printf, 1, 2))); // no-error
26 typedef int (*f3_ptr)(char*,...) __attribute__((format(printf,1,0))); // no-error
30 __attribute__ ((format (printf, 3, 0)));
39 void a2(const char *a, ...) __attribute__((format(printf0, 1,2))); // no-error
65 const char *foo(const char *format) __attribute__((format_arg(1)));
[all …]
H A Dblock-sentinel-attribute.c3 void (^e) (int arg, const char * format, ...) __attribute__ ((__sentinel__ (1,1)));
6 …void (^bbad) (int arg, const char * format) __attribute__ ((__sentinel__)) ; // expected-warning {… in main()
7 …bbad = ^void (int arg, const char * format) __attribute__ ((__sentinel__)) {} ; // expected-warnin… in main()
8 …void (^b) (int arg, const char * format, ...) __attribute__ ((__sentinel__)) = // expected-note {… in main()
9 ^ __attribute__ ((__sentinel__)) (int arg, const char * format, ...) {}; in main()
10 …arg, const char * format, ...) __attribute__ ((__sentinel__ (2))) = ^ __attribute__ ((__sentinel__… in main()
13 …arg, const char * format, ...) __attribute__ ((__sentinel__ (5))) = ^ __attribute__ ((__sentinel__… in main()
/minix/external/bsd/kyua-cli/dist/utils/format/
H A Dformatter.cpp40 namespace format = utils::format;
75 throw format::bad_format_error(format, "Trailing %"); in find_next_placeholder()
83 throw format::bad_format_error(format, "Unterminated placeholder '" + in find_next_placeholder()
132 std::string partial = format.substr(1, format.length() - 2); in new_ostringstream()
209 format::formatter::formatter(const std::string& format, in formatter() argument
212 _format(format), in formatter()
226 format::formatter::formatter(const std::string& format) : in formatter() argument
227 _format(format), in formatter()
228 _expansion(format), in formatter()
265 format::formatter
[all …]
/minix/external/bsd/dhcp/dist/omapip/
H A Discprint.c97 format++; in isc_print_vsnprintf()
100 format++; in isc_print_vsnprintf()
113 format++; in isc_print_vsnprintf()
117 format++; in isc_print_vsnprintf()
121 format++; in isc_print_vsnprintf()
125 format++; in isc_print_vsnprintf()
139 format++; in isc_print_vsnprintf()
150 format++; in isc_print_vsnprintf()
174 format++; in isc_print_vsnprintf()
178 format++; in isc_print_vsnprintf()
[all …]
/minix/external/bsd/bind/dist/lib/lwres/
H A Dprint.c107 format++; in lwres__print_vsnprintf()
110 format++; in lwres__print_vsnprintf()
124 format++; in lwres__print_vsnprintf()
128 format++; in lwres__print_vsnprintf()
132 format++; in lwres__print_vsnprintf()
136 format++; in lwres__print_vsnprintf()
150 format++; in lwres__print_vsnprintf()
161 format++; in lwres__print_vsnprintf()
185 format++; in lwres__print_vsnprintf()
189 format++; in lwres__print_vsnprintf()
[all …]
/minix/external/bsd/bind/dist/lib/isc/
H A Dprint.c111 format++; in isc_print_vsnprintf()
114 format++; in isc_print_vsnprintf()
127 format++; in isc_print_vsnprintf()
131 format++; in isc_print_vsnprintf()
135 format++; in isc_print_vsnprintf()
139 format++; in isc_print_vsnprintf()
153 format++; in isc_print_vsnprintf()
164 format++; in isc_print_vsnprintf()
188 format++; in isc_print_vsnprintf()
192 format++; in isc_print_vsnprintf()
[all …]
H A Derror.c63 isc_error_unexpected(const char *file, int line, const char *format, ...) { in isc_error_unexpected() argument
66 va_start(args, format); in isc_error_unexpected()
67 (unexpected_callback)(file, line, format, args); in isc_error_unexpected()
72 isc_error_fatal(const char *file, int line, const char *format, ...) { in isc_error_fatal() argument
75 va_start(args, format); in isc_error_fatal()
76 (fatal_callback)(file, line, format, args); in isc_error_fatal()
89 default_unexpected_callback(const char *file, int line, const char *format, in default_unexpected_callback() argument
93 vfprintf(stderr, format, args); in default_unexpected_callback()
99 default_fatal_callback(const char *file, int line, const char *format, in default_fatal_callback() argument
105 vfprintf(stderr, format, args); in default_fatal_callback()
/minix/external/bsd/llvm/dist/clang/test/SemaObjC/
H A Dformat-cstrings-warning.m1 // RUN: %clang_cc1 -Wcstring-format-directive -verify -fsyntax-only %s
13 - (NSString *)stringByAppendingFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1…
14 - (instancetype)initWithFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2)));…
15 - (instancetype)initWithFormat:(NSString *)format arguments:(va_list)argList __attribute__((format(…
16 - (instancetype)initWithFormat:(NSString *)format locale:(id)locale, ... __attribute__((format(__NS…
17 …instancetype)initWithFormat:(NSString *)format locale:(id)locale arguments:(va_list)argList __attr…
28 - (void)appendFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2)));
50 …catorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, ...) __attribute__((format(CFSt…
56 …gRef theString, CFDictionaryRef formatOptions, CFStringRef format, ...) __attribute__((format(CFSt…
69 extern void MyNSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2))); // expected…
[all …]
/minix/external/bsd/flex/dist/po/
H A Dflex.pot36 #, c-format
45 #, c-format
50 #, c-format
55 #, c-format
78 #, c-format
99 #, c-format
104 #, c-format
204 #, c-format
217 #, c-format
226 #, c-format
[all …]
H A Dhr.po39 #, c-format
48 #, c-format
53 #, c-format
58 #, c-format
81 #, c-format
102 #, c-format
107 #, c-format
207 #, c-format
220 #, c-format
229 #, c-format
[all …]
H A Dzh_CN.po35 #, c-format
44 #, c-format
49 #, c-format
54 #, c-format
81 #, c-format
106 #, c-format
111 #, c-format
216 #, c-format
229 #, c-format
239 #, c-format
[all …]
H A Dsr.po37 #, c-format
46 #, c-format
51 #, c-format
56 #, c-format
85 #, c-format
110 #, c-format
115 #, c-format
218 #, c-format
231 #, c-format
240 #, c-format
[all …]
H A Dru.po40 #, c-format
49 #, c-format
54 #, c-format
59 #, c-format
88 #, c-format
113 #, c-format
118 #, c-format
221 #, c-format
234 #, c-format
243 #, c-format
[all …]
H A Dzh_TW.po38 #, c-format
47 #, c-format
52 #, c-format
57 #, c-format
86 #, c-format
111 #, c-format
116 #, c-format
219 #, c-format
232 #, c-format
241 #, c-format
[all …]
/minix/external/bsd/kyua-testers/dist/
H A Dtext.c47 calculate_length(const char* format, va_list ap) in calculate_length() argument
53 const int needed = vsnprintf(buffer, sizeof(buffer), format, ap); in calculate_length()
68 kyua_text_printf(char** output, const char* format, ...) in kyua_text_printf() argument
73 va_start(ap, format); in kyua_text_printf()
74 error = kyua_text_vprintf(output, format, ap); in kyua_text_printf()
90 kyua_text_vprintf(char** output, const char* format, va_list ap) in kyua_text_vprintf() argument
95 const int length = calculate_length(format, ap2); in kyua_text_vprintf()
99 "string with format '%s'", format); in kyua_text_vprintf()
106 const int printed_length = vsnprintf(buffer, length + 1, format, ap2); in kyua_text_vprintf()
112 "'%s'", format); in kyua_text_vprintf()
/minix/external/bsd/llvm/dist/clang/tools/clang-format/
H A DCMakeLists.txt3 add_clang_executable(clang-format
7 target_link_libraries(clang-format
14 install(TARGETS clang-format RUNTIME DESTINATION bin)
15 install(PROGRAMS clang-format-bbedit.applescript DESTINATION share/clang)
16 install(PROGRAMS clang-format-diff.py DESTINATION share/clang)
17 install(PROGRAMS clang-format-sublime.py DESTINATION share/clang)
18 install(PROGRAMS clang-format.el DESTINATION share/clang)
19 install(PROGRAMS clang-format.py DESTINATION share/clang)
20 install(PROGRAMS git-clang-format DESTINATION bin)
/minix/external/bsd/llvm/dist/clang/docs/
H A DClangFormat.rst13 :program:`clang-format` is located in `clang/tools/clang-format` and can be used
14 to format C/C++/Obj-C code.
18 $ clang-format -help
31 Clang-format options:
42 -length, clang-format will format up to the end
82 clang-format -style=llvm -dump-config > .clang-format
93 which can be found under `clang/tools/clang-format/clang-format.py`.
119 :program:`emacs`. It can be found at `clang/tools/clang-format/clang-format.el`
124 (load "<path-to-clang>/tools/clang-format/clang-format.el")
136 `clang/tools/clang-format/clang-format-bbedit.applescript`; place a copy in
[all …]
/minix/external/bsd/llvm/dist/llvm/lib/DebugInfo/
H A DDWARFTypeUnit.cpp26 OS << format("0x%08x", getOffset()) << ": Type Unit:" in dump()
27 << " length = " << format("0x%08x", getLength()) in dump()
28 << " version = " << format("0x%04x", getVersion()) in dump()
29 << " abbr_offset = " << format("0x%04x", getAbbreviations()->getOffset()) in dump()
30 << " addr_size = " << format("0x%02x", getAddressByteSize()) in dump()
31 << " type_signature = " << format("0x%16" PRIx64, TypeHash) in dump()
32 << " type_offset = " << format("0x%04x", TypeOffset) in dump()
33 << " (next unit at " << format("0x%08x", getNextUnitOffset()) in dump()
/minix/external/bsd/llvm/dist/llvm/utils/testgen/
H A Dmc-bundling-x86-gen.py30 '''.format(BUNDLE_SIZE_POW2).lstrip()
36 print(' .bundle_lock{0}'.format(' align_to_end' if align_to_end else ''))
37 print(' .rept {0}'.format(len))
50 print(ALIGNTO.format(2 * BUNDLE_SIZE))
51 print('INSTRLEN_{0}_OFFSET_{1}:'.format(instlen, offset))
53 print(NOPFILL.format(offset))
62 print('# CHECK: {0:x}: nop'.format(inst_orig_offset))
64 print('# CHECK: {0:x}: nop'.format(nop_split_offset))
65 print('# CHECK: {0:x}: incl'.format(adjusted_offset))
67 print('# CHECK: {0:x}: incl'.format(inst_orig_offset))
/minix/external/bsd/llvm/dist/clang/test/SemaCXX/
H A Dformat-strings.cpp28 int scanf(const char *, ...) __attribute__((format(scanf, 2, 3)));
29 int printf(const char *, ...) __attribute__((format(printf, 2, 3)));
33 static int printf_static(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
48 int test_null_format(const char *format, ...) __attribute__((__format__ (__printf__, 1, 2)));
62 const char * const format = fmt; in printf() local
63 vprintf(format, ap); // no-warning in printf()
106 void format(const char *fmt, ...) __attribute__((format(printf,2,3)));
110format("%d", arg); // expected-warning {{format specifies type 'int' but the argument has type 'co… in print()
119 extern void (^block_print)(const char * format, ...) __attribute__((format(printf, 1, 2)));
H A Dattr-format.cpp3 static void f(const char*, ...) __attribute__((format(printf, 1, 2)));
8 void g(const char*, ...) __attribute__((format(printf, 2, 3)));
11 void h(const char*, ...) __attribute__((format(printf, 1, 4))); // \
12 expected-error{{implicit this argument as the format string}}
13 void h2(const char*, ...) __attribute__((format(printf, 2, 1))); // \
18 void operator() (const char*, ...) __attribute__((format(printf, 2, 3)));
22 struct A { void a(const char*,...) __attribute((format(printf,2,3))); };
32 __attribute__((format(printf, 2, 3)));
/minix/external/bsd/llvm/dist/llvm/lib/MC/
H A DMCInstPrinter.cpp73 return format("%" PRId64, Value); in formatDec()
80 return format("-0x%" PRIx64, -Value); in formatHex()
82 return format("0x%" PRIx64, Value); in formatHex()
86 return format("-0%" PRIx64 "h", -Value); in formatHex()
88 return format("-%" PRIx64 "h", -Value); in formatHex()
91 return format("0%" PRIx64 "h", Value); in formatHex()
93 return format("%" PRIx64 "h", Value); in formatHex()
102 return format("0x%" PRIx64, Value); in formatHex()
105 return format("0%" PRIx64 "h", Value); in formatHex()
107 return format("%" PRIx64 "h", Value); in formatHex()
/minix/external/bsd/llvm/dist/clang/test/FixIt/
H A Dformat.m10 …printf("%s", x); // expected-warning{{format specifies type 'char *' but the argument has type 'in…
11 …printf("%lf", x); // expected-warning{{format specifies type 'double' but the argument has type 'i…
16 …NSLog(@"%s", x); // expected-warning{{format specifies type 'char *' but the argument has type 'in…
17 …NSLog(@"%lf", x); // expected-warning{{format specifies type 'double' but the argument has type 'i…
18 NSLog(@"%@", x); // expected-warning{{format specifies type 'id' but the argument has type 'int'}}
25 …printf("%d", x); // expected-warning{{format specifies type 'int' but the argument has type 'char …
31 …NSLog(@"%d", x); // expected-warning{{format specifies type 'int' but the argument has type 'char …
34 …NSLog(@"%@", x); // expected-warning{{format specifies type 'id' but the argument has type 'char *…
41 NSLog(@"%d", x); // expected-warning{{format specifies type 'int' but the argument has type 'id'}}
42 …NSLog(@"%s", x); // expected-warning{{format specifies type 'char *' but the argument has type 'id…
[all …]
/minix/external/bsd/tcpdump/dist/missing/
H A Dsnprintf.c320 c = *format++; in xyzprintf()
324 c = *format++; in xyzprintf()
330 c = *format++; in xyzprintf()
334 c = *format++; in xyzprintf()
338 c = *format++; in xyzprintf()
346 c = *format++; in xyzprintf()
349 c = *format++; in xyzprintf()
438 --format; in xyzprintf()
464 va_start(args, format); in snprintf()
496 va_start(args, format);
[all …]

12345678910>>...47