| /minix3/external/bsd/llvm/dist/clang/unittests/Format/ |
| H A D | FormatTest.cpp | 18 namespace format { namespace 26 std::string format(llvm::StringRef Code, unsigned Offset, unsigned Length, in format() function in clang::format::FormatTest 40 format(llvm::StringRef Code, const FormatStyle &Style = getLLVMStyle()) { in format() function in clang::format::FormatTest 41 return format(Code, 0, Code.size(), Style); in format() 58 EXPECT_EQ(Code.str(), format(test::messUp(Code), Style)); in verifyFormat() 86 EXPECT_EQ(";", format(";")); in TEST_F() 90 EXPECT_EQ("int i;", format(" int i;")); in TEST_F() 91 EXPECT_EQ("\nint i;", format(" \n\t \v \f int i;")); in TEST_F() 92 EXPECT_EQ("int i;\nint j;", format(" int i; int j;")); in TEST_F() 93 EXPECT_EQ("int i;\nint j;", format(" int i;\n int j;")); in TEST_F() [all …]
|
| /minix3/external/bsd/llvm/dist/clang/test/Sema/ |
| H A D | attr-format.c | 5 void a(const char *a, ...) __attribute__((format(printf, 1,2))); // no-error 6 void b(const char *a, ...) __attribute__((format(printf, 1,1))); // expected-error {{'format' attri… 7 void c(const char *a, ...) __attribute__((format(printf, 0,2))); // expected-error {{'format' attri… 8 void d(const char *a, int c) __attribute__((format(printf, 1,2))); // expected-error {{format attri… 9 void e(char *str, int c, ...) __attribute__((format(printf, 2,3))); // expected-error {{format argu… 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 16 void z(char *str, int c, ...) __attribute__((format(strftime, 1,2))); // expected-error {{strftime … 18 int (*f_ptr)(char*,...) __attribute__((format(printf, 1,2))); // no-error [all …]
|
| H A D | block-sentinel-attribute.c | 3 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()
|
| /minix3/external/bsd/kyua-cli/dist/utils/format/ |
| H A D | formatter.cpp | 40 namespace format = utils::format; 65 find_next_placeholder(const std::string& format, in find_next_placeholder() argument 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() 98 to_int(const std::string& format, const std::string& str, const char* what) in to_int() argument 103 throw format::bad_format_error(format, "Invalid " + std::string(what) + in to_int() 119 new_ostringstream(const std::string& format) in new_ostringstream() argument 123 if (format.length() <= 2) { in new_ostringstream() 132 std::string partial = format.substr(1, format.length() - 2); in new_ostringstream() 140 output->width(to_int(format, partial.substr(0, dot), "width")); in new_ostringstream() [all …]
|
| /minix3/external/bsd/dhcp/dist/omapip/ |
| H A D | iscprint.c | 41 isc_print_snprintf(char *str, size_t size, const char *format, ...) { in isc_print_snprintf() argument 45 va_start(ap, format); in isc_print_snprintf() 46 ret = vsnprintf(str, size, format, ap); in isc_print_snprintf() 56 isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) { in isc_print_vsnprintf() argument 88 INSIST(format != NULL); in isc_print_vsnprintf() 90 while (*format != '\0') { in isc_print_vsnprintf() 91 if (*format != '%') { in isc_print_vsnprintf() 93 *str++ = *format; in isc_print_vsnprintf() 97 format++; in isc_print_vsnprintf() 100 format++; in isc_print_vsnprintf() [all …]
|
| /minix3/external/bsd/bind/dist/lib/lwres/ |
| H A D | print.c | 37 lwres__print_sprintf(char *str, const char *format, ...) { in lwres__print_sprintf() argument 40 va_start(ap, format); in lwres__print_sprintf() 41 vsprintf(str, format, ap); in lwres__print_sprintf() 51 lwres__print_snprintf(char *str, size_t size, const char *format, ...) { in lwres__print_snprintf() argument 55 va_start(ap, format); in lwres__print_snprintf() 56 ret = vsnprintf(str, size, format, ap); in lwres__print_snprintf() 67 lwres__print_vsnprintf(char *str, size_t size, const char *format, va_list ap) { in lwres__print_vsnprintf() argument 98 INSIST(format != NULL); in lwres__print_vsnprintf() 100 while (*format != '\0') { in lwres__print_vsnprintf() 101 if (*format != '%') { in lwres__print_vsnprintf() [all …]
|
| /minix3/external/bsd/bind/dist/lib/isc/ |
| H A D | print.c | 40 isc_print_sprintf(char *str, const char *format, ...) { in isc_print_sprintf() argument 43 va_start(ap, format); in isc_print_sprintf() 44 vsprintf(str, format, ap); in isc_print_sprintf() 54 isc_print_snprintf(char *str, size_t size, const char *format, ...) { in isc_print_snprintf() argument 58 va_start(ap, format); in isc_print_snprintf() 59 ret = vsnprintf(str, size, format, ap); in isc_print_snprintf() 70 isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) { in isc_print_vsnprintf() argument 102 INSIST(format != NULL); in isc_print_vsnprintf() 104 while (*format != '\0') { in isc_print_vsnprintf() 105 if (*format != '%') { in isc_print_vsnprintf() [all …]
|
| H A D | error.c | 63 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()
|
| /minix3/external/bsd/llvm/dist/clang/test/SemaObjC/ |
| H A D | format-cstrings-warning.m | 1 // 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… 18 + (instancetype)stringWithFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2))… 19 + (instancetype)localizedStringWithFormat:(NSString *)format, ... __attribute__((format(__NSString_… 20 - (void)MyRandomMethod:(NSString *)format locale:(id)locale arguments:(va_list)argList __attribute_… 28 - (void)appendFormat:(NSString *)format, ... __attribute__((format(__NSString__, 1, 2))); [all …]
|
| /minix3/external/bsd/flex/dist/po/ |
| H A D | flex.pot | 36 #, 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 D | hr.po | 39 #, 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 D | zh_CN.po | 35 #, 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 D | zh_TW.po | 38 #, 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 …]
|
| H A D | ru.po | 40 #, 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 D | sr.po | 37 #, 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 …]
|
| /minix3/external/bsd/kyua-testers/dist/ |
| H A D | text.c | 47 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()
|
| /minix3/external/bsd/llvm/dist/clang/tools/clang-format/ |
| H A D | CMakeLists.txt | 3 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)
|
| /minix3/external/bsd/llvm/dist/clang/docs/ |
| H A D | ClangFormat.rst | 13 :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 19 OVERVIEW: A tool to format C/C++/Obj-C code. 27 USAGE: clang-format [options] [<file> ...] 31 Clang-format options: 34 clang-format from an editor integration 42 -length, clang-format will format up to the end 45 -lines=<string> - <start line>:<end line> - format a range of 59 .clang-format file located in one of the parent [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/DebugInfo/ |
| H A D | DWARFTypeUnit.cpp | 26 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()
|
| /minix3/external/bsd/llvm/dist/llvm/utils/testgen/ |
| H A D | mc-bundling-x86-gen.py | 30 '''.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))
|
| /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/ |
| H A D | format-strings.cpp | 28 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))); 110 …format("%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 D | attr-format.cpp | 3 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)));
|
| /minix3/external/bsd/llvm/dist/llvm/lib/MC/ |
| H A D | MCInstPrinter.cpp | 73 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()
|
| /minix3/external/bsd/llvm/dist/clang/test/FixIt/ |
| H A D | format.m | 10 …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 … 27 …printf("%lf", x); // expected-warning{{format specifies type 'double' but the argument has type 'c… 31 …NSLog(@"%d", x); // expected-warning{{format specifies type 'int' but the argument has type 'char … 33 …NSLog(@"%lf", x); // expected-warning{{format specifies type 'double' but the argument has type 'c… 34 …NSLog(@"%@", x); // expected-warning{{format specifies type 'id' but the argument has type 'char *… [all …]
|
| /minix3/external/bsd/libpcap/dist/missing/ |
| H A D | snprintf.c | 283 const unsigned char *format = (const unsigned char *)char_format; in xyzprintf() local 286 while((c = *format++)) { in xyzprintf() 295 while((c = *format++)){ in xyzprintf() 320 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() [all …]
|