| /llvm-project-15.0.7/clang/unittests/Format/ |
| H A D | FormatTestComments.cpp | 23 namespace format { namespace 695 format("{\n" in TEST_F() 707 format("{\n" in TEST_F() 1133 format("/* " in TEST_F() 1201 format("{\n" in TEST_F() 1219 format("{\n" in TEST_F() 1245 format("{\n" in TEST_F() 2470 format( in TEST_F() 3066 format( in TEST_F() 3184 format( in TEST_F() [all …]
|
| H A D | FormatTestSelective.cpp | 17 namespace format { namespace 93 format( in TEST_F() 167 format("int a;\n" in TEST_F() 289 format("Debug({\n" in TEST_F() 301 format("DEBUG({\n" in TEST_F() 426 format("{\n" in TEST_F() 441 format("{\n" in TEST_F() 456 format("{\n" in TEST_F() 471 format("{\n" in TEST_F() 483 format(" {\n" in TEST_F() [all …]
|
| H A D | FormatTestRawStrings.cpp | 24 namespace format { namespace 161 format(R"test( in TEST_F() 173 format(R"test( in TEST_F() 200 format(R"test( in TEST_F() 215 format( in TEST_F() 225 format(R"test( in TEST_F() 235 format(R"test( in TEST_F() 243 format(R"test( in TEST_F() 253 format( in TEST_F() 264 format(R"test( in TEST_F() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/format/format.functions/ |
| H A D | ascii.pass.cpp | 27 assert(std::format("{:*^3}", " ") == "* *"); in test_char() 28 assert(std::format("{:*^3}", "~") == "*~*"); in test_char() 32 assert(std::format("{:*^4}", "\u07ff") == "*\u07ff*"); // NKO TAMAN SIGN in test_char() 35 assert(std::format("{:*^5}", "\u0800") == "*\u0800*"); // SAMARITAN LETTER ALAF in test_char() 36 assert(std::format("{:*^5}", "\ufffd") == "*\ufffd*"); // REPLACEMENT CHARACTER in test_char() 45 assert(std::format("{:*^5}", "\u2e80") == "*\u2e80*"); // CJK RADICAL REPEAT in test_char() 52 assert(std::format("{:*^5}", "\ud7a3") == "*\ud7a3*"); // Hangul Syllable Hih in test_char() 67 assert(std::format("{:*^5}", "\uffe6") == "*\uffe6*"); // FULLWIDTH WON SIGN in test_char() 74 assert(std::format("{:*^6}", "\U0001f300") == "*\U0001f300*"); // CYCLONE in test_char() 91 assert(std::format(L"{:*^3}", L" ") == L"* *"); in test_wchar_t() [all …]
|
| H A D | format.verify.cpp | 29 …std::format("{"); // expected-error-re{{call to consteval function '{{.*}}' is not a constant expr… in f() 32 …std::format("}"); // expected-error-re{{call to consteval function '{{.*}}' is not a constant expr… in f() 35 …std::format("{}"); // expected-error-re{{call to consteval function '{{.*}}' is not a constant exp… in f() 38 …std::format("{0}"); // expected-error-re{{call to consteval function '{{.*}}' is not a constant ex… in f() 41 …std::format("{:-}", "Forty-two"); // expected-error-re{{call to consteval function '{{.*}}' is not… in f() 60 …std::format(L"{"); // expected-error-re{{call to consteval function '{{.*}}' is not a constant exp… in f() 63 …std::format(L"}"); // expected-error-re{{call to consteval function '{{.*}}' is not a constant exp… in f() 66 …std::format(L"{}"); // expected-error-re{{call to consteval function '{{.*}}' is not a constant ex… in f() 69 …std::format(L"{0}"); // expected-error-re{{call to consteval function '{{.*}}' is not a constant e… in f() 99 std::format("{}", t.bit); // expected-error{{non-const reference cannot bind to bit-field 'bit'}} in P2418() [all …]
|
| H A D | format.locale.verify.cpp | 31 …std::format(std::locale(), "{"); // expected-error-re{{call to consteval function '{{.*}}' is not … in f() 34 …std::format(std::locale(), "}"); // expected-error-re{{call to consteval function '{{.*}}' is not … in f() 37 …std::format(std::locale(), "{}"); // expected-error-re{{call to consteval function '{{.*}}' is not… in f() 40 …std::format(std::locale(), "{0}"); // expected-error-re{{call to consteval function '{{.*}}' is no… in f() 43 …std::format(std::locale(), "{:-}", "Forty-two"); // expected-error-re{{call to consteval function … in f() 46 …std::format(std::locale(), "{:#}", "Forty-two"); // expected-error-re{{call to consteval function … in f() 49 …std::format(std::locale(), "{:L}", "Forty-two"); // expected-error-re{{call to consteval function … in f() 62 …std::format(std::locale(), L"{"); // expected-error-re{{call to consteval function '{{.*}}' is not… in f() 65 …std::format(std::locale(), L"}"); // expected-error-re{{call to consteval function '{{.*}}' is not… in f() 68 …std::format(std::locale(), L"{}"); // expected-error-re{{call to consteval function '{{.*}}' is no… in f() [all …]
|
| /llvm-project-15.0.7/llvm/test/MC/AMDGPU/ |
| H A D | mtbuf-gfx10.s | 9 tbuffer_load_format_d16_x v0, off, s[0:3], format:22, 0 12 tbuffer_load_format_d16_xy v0, off, s[0:3], format:22, 0 18 tbuffer_load_format_xyzw v[0:3], off, s[0:3], format:78, 0 54 tbuffer_load_format_xy v[0:1], off, s[0:3], format:77, 0 57 tbuffer_load_format_x v0, off, s[0:3], format:77, 0 114 tbuffer_store_format_x v0, v1, s[0:3] format:0 s0 idxen 117 tbuffer_store_format_x v0, v1, s[0:3] format:1 s0 idxen 127 tbuffer_store_format_x v0, v1, s[0:3] format:0 s0 idxen 130 tbuffer_store_format_x v0, v1, s[0:3] format:0 s0 idxen 137 tbuffer_load_format_d16_x v0, off, s[0:3], format:-1, 0 [all …]
|
| H A D | gfx11_mtbuf.s | 7 tbuffer_load_d16_format_x v255, off, s[8:11], s3, format:1 offset:4095 16 tbuffer_load_d16_format_x v4, off, s[12:15], m0, format:2 offset:4095 25 tbuffer_load_d16_format_x v4, off, ttmp[4:7], 61, format:3 offset:4095 52 tbuffer_load_d16_format_xy v255, off, s[8:11], s3, format:6 offset:4095 61 tbuffer_load_d16_format_xy v4, off, s[12:15], m0, format:7 offset:4095 70 tbuffer_load_d16_format_xy v4, off, ttmp[4:7], 61, format:8 offset:4095 187 tbuffer_load_format_x v255, off, s[8:11], s3, format:21 offset:4095 196 tbuffer_load_format_x v4, off, s[12:15], m0, format:22 offset:4095 205 tbuffer_load_format_x v4, off, ttmp[4:7], 61, format:23 offset:4095 547 tbuffer_store_format_x v255, off, s[8:11], s3, format:61 offset:4095 [all …]
|
| H A D | gfx11_mtbuf_alias.s | 4 tbuffer_load_format_d16_x v4, off, s[8:11], s3, format:[BUF_FMT_8_UNORM] offset:4095 7 tbuffer_load_format_d16_x v255, off, s[8:11], s3, format:1 offset:4095 16 tbuffer_load_format_d16_x v4, off, s[12:15], m0, format:2 offset:4095 25 tbuffer_load_format_d16_x v4, off, ttmp[4:7], 61, format:3 offset:4095 43 tbuffer_load_format_d16_x v4, off, ttmp[4:7], s3, format:5 offset:4095 dlc 52 tbuffer_load_format_d16_xy v255, off, s[8:11], s3, format:6 offset:4095 61 tbuffer_load_format_d16_xy v4, off, s[12:15], m0, format:7 offset:4095 70 tbuffer_load_format_d16_xy v4, off, ttmp[4:7], 61, format:8 offset:4095 187 tbuffer_store_format_d16_x v255, off, s[8:11], s3, format:41 offset:4095 196 tbuffer_store_format_d16_x v4, off, s[12:15], m0, format:42 offset:4095 [all …]
|
| H A D | mtbuf.s | 143 tbuffer_store_format_xyzw v[1:4], off, ttmp[4:7], s0 format:0 148 tbuffer_store_format_xyzw v[1:4], off, ttmp[4:7], s0 format:127 153 tbuffer_store_format_xyzw v[1:4], off, ttmp[4:7], s0 format:(2 + 3 * 16) 178 tbuffer_store_format_xyzw v[1:4], off, ttmp[4:7], s0 format:[BUF_DATA_FORMAT_32] 287 tbuffer_store_format_xyzw v[1:4], off, ttmp[4:7], format:[BUF_DATA_FORMAT_32] 299 tbuffer_store_format_xyzw v[1:4], off, ttmp[4:7], s0 format: offset:52 303 tbuffer_store_format_xyzw v[1:4], off, ttmp[4:7], s0 format:-1 307 tbuffer_store_format_xyzw v[1:4], off, ttmp[4:7], s0 format:128 312 tbuffer_store_format_xyzw v[1:4], off, ttmp[4:7], s0 format:MAXVAL+1 316 tbuffer_store_format_xyzw v[1:4], off, ttmp[4:7], s0 format:[] [all …]
|
| H A D | gfx8_asm_mtbuf.s | 78 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_8] offset:4095 81 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_16] offset:4095 84 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_8_8] offset:4095 87 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_32] offset:4095 90 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_16_16] offset:4095 108 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_32_32] offset:4095 126 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_NUM_FORMAT_UNORM] offset:4095 129 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_NUM_FORMAT_SNORM] offset:4095 138 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_NUM_FORMAT_UINT] offset:4095 141 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_NUM_FORMAT_SINT] offset:4095 [all …]
|
| H A D | gfx9_asm_mtbuf.s | 66 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_8] offset:4095 69 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_16] offset:4095 72 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_8_8] offset:4095 75 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_32] offset:4095 78 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_16_16] offset:4095 96 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_32_32] offset:4095 114 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_NUM_FORMAT_UNORM] offset:4095 117 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_NUM_FORMAT_SNORM] offset:4095 126 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_NUM_FORMAT_UINT] offset:4095 129 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_NUM_FORMAT_SINT] offset:4095 [all …]
|
| H A D | gfx7_asm_mtbuf.s | 78 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_8] offset:4095 81 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_16] offset:4095 84 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_8_8] offset:4095 87 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_32] offset:4095 90 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_16_16] offset:4095 108 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_DATA_FORMAT_32_32] offset:4095 126 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_NUM_FORMAT_UNORM] offset:4095 129 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_NUM_FORMAT_SNORM] offset:4095 138 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_NUM_FORMAT_UINT] offset:4095 141 tbuffer_load_format_x v5, off, s[8:11], s3 format:[BUF_NUM_FORMAT_SINT] offset:4095 [all …]
|
| /llvm-project-15.0.7/lldb/test/API/tools/lldb-server/memory-tagging/ |
| H A D | TestGdbRemoteMemoryTagging.py | 48 "read packet: {}".format(chr(3)), 87 self.check_tag_read("{:x}".format(buf_address), "E03") 89 self.check_tag_read("{:x},20".format(buf_address), "E03") 97 self.check_tag_read("{:x},:1".format(buf_address), "E03") 100 self.check_tag_read("{:x},-1:1".format(buf_address), "E03") 103 self.check_tag_read("{:x},10:".format(buf_address), "E03") 105 self.check_tag_read("{:x},10:FF".format(buf_address), "E01") 110 self.check_tag_read("{:x},0:FF".format(buf_address), "E01") 124 self.check_tag_read("{:x},0:1".format(buf_address), "m") 156 self.check_tag_write("{:x}".format(buf_address), "E03") [all …]
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | attr-format.c | 5 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 26 typedef int (*f3_ptr)(char*,...) __attribute__((format(printf,1,0))); // no-error 30 __attribute__ ((format (printf, 3, 0))); 37 void a2(const char *a, ...) __attribute__((format(printf0, 1, 2))); // no-error 59 void a3(const char *a, ...) __attribute__((format(freebsd_kprintf, 1, 2))); // no-error 68 const char *foo(const char *format) __attribute__((format_arg(1))); [all …]
|
| /llvm-project-15.0.7/lldb/packages/Python/lldbsuite/test/tools/lldb-server/ |
| H A D | fork_testbase.py | 19 "{}-events+".format(variant)]) 32 "regex": self.fork_regex_nonstop.format(variant), 55 "read packet: $D;{}#00".format(child_pid), 81 "read packet: $D;{}#00".format(parent_pid), 134 "read packet: $vKill;{}#00".format(parent_pid), 140 "read packet: $vKill;{}#00".format(child_pid), 158 self.stop_regex_base.format(parent_pid, parent_tid), 159 "W00;process:{}#.*".format(parent_pid), 162 self.stop_regex_base.format(child_pid, child_tid), 163 "W00;process:{}#.*".format(child_pid), [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/unittests/clang-change-namespace/ |
| H A D | ChangeNamespaceTests.cpp | 50 return format(Context.getRewrittenText(ID)); in runChangeNamespaceOnCode() 53 std::string format(llvm::StringRef Code) { in format() function in clang::change_namespace::__anon6823f73c0111::ChangeNamespaceTest 54 tooling::Replacements Replaces = format::reformat( in format() 83 EXPECT_EQ(format(Expected), runChangeNamespaceOnCode(Code)); in TEST_F() 98 EXPECT_EQ(format(Expected), runChangeNamespaceOnCode(Code)); in TEST_F() 115 EXPECT_EQ(format(Expected), runChangeNamespaceOnCode(Code)); in TEST_F() 136 EXPECT_EQ(format(Expected), runChangeNamespaceOnCode(Code)); in TEST_F() 156 EXPECT_EQ(format(Expected), runChangeNamespaceOnCode(Code)); in TEST_F() 179 EXPECT_EQ(format(Expected), runChangeNamespaceOnCode(Code)); in TEST_F() 195 EXPECT_EQ(format(Expected), runChangeNamespaceOnCode(Code)); in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | attr-format.cpp | 4 int printf(const char *fmt, ...) __attribute__((format(printf, 1, 2))); 7 static void f(const char *, ...) __attribute__((format(printf, 1, 2))); 12 void g(const char*, ...) __attribute__((format(printf, 2, 3))); 15 void h(const char*, ...) __attribute__((format(printf, 1, 4))); // \ 16 expected-error{{implicit this argument as the format string}} 36 __attribute__((format(printf, 2, 3))); 51 __attribute__((format(printf, 1, 2))); 63 __attribute__((format(printf, 2, 3))) { in format() 69 __attribute__((format(printf, 1, 2))); 75 format("bare string"); in do_format() [all …]
|
| /llvm-project-15.0.7/lldb/tools/debugserver/source/ |
| H A D | DNBLog.cpp | 76 va_start(args, format); in _DNBLog() 77 _DNBLogVAPrintf(flags, format, args); in _DNBLog() 86 va_start(args, format); in _DNBLogDebug() 97 va_start(args, format); in _DNBLogDebugVerbose() 113 va_start(args, format); in _DNBLogThreaded() 155 va_start(args, format); in _DNBLogThreadedIf() 195 va_start(args, format); in _DNBLogError() 212 va_start(args, format); in _DNBLogFatalError() 229 va_start(args, format); in _DNBLogVerbose() 241 va_start(args, format); in _DNBLogWarningVerbose() [all …]
|
| /llvm-project-15.0.7/flang/lib/Parser/ |
| H A D | io-parsers.cpp | 192 construct<IoControlSpec>("FMT =" >> format), 546 TYPE_PARSER(construct<format::FormatItem>( 548 construct<format::FormatItem>( 550 construct<format::FormatItem>(Parser<format::ControlEditDesc>{}) || 589 construct<format::IntrinsicTypeDataEditDesc>( 593 construct<format::IntrinsicTypeDataEditDesc>( 653 TYPE_PARSER(construct<format::ControlEditDesc>( 658 construct<format::ControlEditDesc>(count, 661 construct<format::ControlEditDesc>( 664 construct<format::ControlEditDesc>( [all …]
|
| /llvm-project-15.0.7/flang/unittests/Runtime/ |
| H A D | RuntimeCrashTest.cpp | 59 static const char *format{"(A4)"}; in TEST() local 61 buffer, bufferSize, format, std::strlen(format))}; in TEST() 71 buffer, bufferSize, format, std::strlen(format))}; in TEST() 87 buffer, bufferSize, format, std::strlen(format))}; in TEST() 98 buffer, bufferSize, format, std::strlen(format))}; in TEST() 109 buffer, bufferSize, format, std::strlen(format))}; in TEST() 120 buffer, bufferSize, format, std::strlen(format))}; in TEST() 127 buffer, bufferSize, format, std::strlen(format)); in TEST() 138 buffer, bufferSize, format, std::strlen(format))}; in TEST() 145 buffer, bufferSize, format, std::strlen(format)); in TEST() [all …]
|
| /llvm-project-15.0.7/libclc/generic/lib/ |
| H A D | gen_convert.py | 190 """.format(SRC=src, DST=dst, M=mode)) 206 }}""".format(SRC=src, DST=dst, M=mode)) 237 {{""".format(DST=dst, SRC=src, N=size)) 262 return y;""".format(SRC=src, DST=dst, N=size, 273 print(" x = max(x, ({SRC})0);".format(SRC=src)) 285 print(" x = max(x, ({SRC})0);".format(SRC=src)) 311 """.format(DST=dst, SRC=src, N=size, M=mode)) 343 {{""".format(SRC=src, DST=dst, N=size, M=mode, S=sat)) 367 .format(DST=dst, N=size, BOOL=bool_type[dst])) 370 .format(DST=dst, N=size, BOOL=bool_type[dst])) [all …]
|
| /llvm-project-15.0.7/lldb/test/API/tools/lldb-server/ |
| H A D | TestGdbRemoteFork.py | 21 "read packet: $D;{}#00".format(child_pid), 34 "send packet: $W00;process:{}#00".format(parent_pid), 47 .format(parent_pid, parent_tid), 83 "read packet: $Hgp{:x}.{:x}#00".format(pid, tid), 85 "read packet: $Hcp{:x}.{:x}#00".format(pid, tid), 121 "read packet: $D;{}#00".format(pid), 262 "regex": self.stop_regex.format(*pidtid), 323 "read packet: $m{},{:x}#00".format(addr, 359 "read packet: $m{},{:x}#00".format(addr, 438 "read packet: $p{:x}#00".format(regno), [all …]
|
| /llvm-project-15.0.7/clang/tools/clang-format/ |
| H A D | CMakeLists.txt | 3 add_clang_tool(clang-format 14 clang_target_link_libraries(clang-format 25 COMPONENT clang-format) 28 COMPONENT clang-format) 31 COMPONENT clang-format) 32 install(PROGRAMS clang-format.el 34 COMPONENT clang-format) 35 install(PROGRAMS clang-format.py 37 COMPONENT clang-format) 38 install(PROGRAMS git-clang-format [all …]
|
| /llvm-project-15.0.7/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… 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 …]
|