| /llvm-project-15.0.7/libcxx/test/std/utilities/format/format.functions/ |
| H A D | formatted_size.verify.cpp | 29 …std::formatted_size("{"); // expected-error-re{{call to consteval function '{{.*}}' is not a const… in f() 32 …std::formatted_size("}"); // expected-error-re{{call to consteval function '{{.*}}' is not a const… in f() 35 …std::formatted_size("{}"); // expected-error-re{{call to consteval function '{{.*}}' is not a cons… in f() 38 …std::formatted_size("{0}"); // expected-error-re{{call to consteval function '{{.*}}' is not a con… in f() 41 …std::formatted_size("{:-}", "Forty-two"); // expected-error-re{{call to consteval function '{{.*}}… in f() 44 …std::formatted_size("{:#}", "Forty-two"); // expected-error-re{{call to consteval function '{{.*}}… in f() 47 …std::formatted_size("{:L}", "Forty-two"); // expected-error-re{{call to consteval function '{{.*}}… in f() 60 …std::formatted_size(L"{"); // expected-error-re{{call to consteval function '{{.*}}' is not a cons… in f() 63 …std::formatted_size(L"}"); // expected-error-re{{call to consteval function '{{.*}}' is not a cons… in f() 66 …std::formatted_size(L"{}"); // expected-error-re{{call to consteval function '{{.*}}' is not a con… in f() [all …]
|
| H A D | formatted_size.locale.verify.cpp | 33 …std::formatted_size(std::locale(), "{"); // expected-error-re{{call to consteval function '{{.*}}'… in f() 36 …std::formatted_size(std::locale(), "}"); // expected-error-re{{call to consteval function '{{.*}}'… in f() 39 …std::formatted_size(std::locale(), "{}"); // expected-error-re{{call to consteval function '{{.*}}… in f() 42 …std::formatted_size(std::locale(), "{0}"); // expected-error-re{{call to consteval function '{{.*}… in f() 45 …std::formatted_size(std::locale(), "{:-}", "Forty-two"); // expected-error-re{{call to consteval f… in f() 48 …std::formatted_size(std::locale(), "{:#}", "Forty-two"); // expected-error-re{{call to consteval f… in f() 51 …std::formatted_size(std::locale(), "{:L}", "Forty-two"); // expected-error-re{{call to consteval f… in f() 64 …std::formatted_size(std::locale(), L"{"); // expected-error-re{{call to consteval function '{{.*}}… in f() 67 …std::formatted_size(std::locale(), L"}"); // expected-error-re{{call to consteval function '{{.*}}… in f() 70 …std::formatted_size(std::locale(), L"{}"); // expected-error-re{{call to consteval function '{{.*}… in f() [all …]
|
| H A D | format_to_n.pass.cpp | 42 diff_type formatted_size = std::formatted_size(fmt.template sv<CharT>(), args...); variable 44 assert(result.size == formatted_size); 51 diff_type formatted_size = std::formatted_size(fmt.template sv<CharT>(), args...); variable 52 diff_type size = std::min<diff_type>(5, formatted_size); 54 assert(result.size == formatted_size); 61 diff_type formatted_size = std::formatted_size(fmt.template sv<CharT>(), args...); variable 64 assert(result.size == formatted_size); 72 diff_type formatted_size = std::formatted_size(fmt.template sv<CharT>(), args...); variable 75 assert(result.size == formatted_size); 86 diff_type formatted_size = std::formatted_size(fmt.template sv<CharT>(), args...); variable [all …]
|
| H A D | format_to_n.locale.pass.cpp | 46 … diff_type formatted_size = std::formatted_size(std::locale(), fmt.template sv<CharT>(), args...); variable 48 assert(result.size == formatted_size); 56 … diff_type formatted_size = std::formatted_size(std::locale(), fmt.template sv<CharT>(), args...); variable 57 diff_type size = std::min<diff_type>(5, formatted_size); 59 assert(result.size == formatted_size); 67 … diff_type formatted_size = std::formatted_size(std::locale(), fmt.template sv<CharT>(), args...); variable 70 assert(result.size == formatted_size); 79 … diff_type formatted_size = std::formatted_size(std::locale(), fmt.template sv<CharT>(), args...); variable 82 assert(result.size == formatted_size); 93 … diff_type formatted_size = std::formatted_size(std::locale(), fmt.template sv<CharT>(), args...); variable [all …]
|
| H A D | P2418.pass.cpp | 99 assert(std::formatted_size(SV("{}"), MoveOnly{}) == 1); in test() 101 assert(std::formatted_size(SV("{}"), m) == 2); in test() 104 assert(std::formatted_size(SV("{}"), std::move(m)) == 2); in test() 108 assert(std::formatted_size(loc, SV("{}"), MoveOnly{}) == 1); in test() 110 assert(std::formatted_size(loc, SV("{}"), m) == 2); in test() 113 assert(std::formatted_size(loc, SV("{}"), std::move(m)) == 2); in test()
|
| H A D | formatted_size.pass.cpp | 32 size_t size = std::formatted_size(fmt.template sv<CharT>(), args...);
|
| H A D | formatted_size.locale.pass.cpp | 35 size_t size = std::formatted_size(std::locale(), fmt.template sv<CharT>(), args...);
|
| H A D | locale-specific_form.pass.cpp | 160 diff_type formatted_size = std::formatted_size(fmt.template sv<CharT>(), args...); in test() local 161 diff_type size = std::min<diff_type>(1000, formatted_size); in test() 163 assert(result.size == formatted_size); in test() 168 size_t size = std::formatted_size(fmt.template sv<CharT>(), args...); in test() 211 diff_type formatted_size = std::formatted_size(loc, fmt.template sv<CharT>(), args...); in test() local 212 diff_type size = std::min<diff_type>(1000, formatted_size); in test() 214 assert(result.size == formatted_size); in test() 219 size_t size = std::formatted_size(loc, fmt.template sv<CharT>(), args...); in test()
|
| /llvm-project-15.0.7/libcxx/benchmarks/ |
| H A D | formatted_size.bench.cpp | 23 benchmark::DoNotOptimize(std::formatted_size(CSTR("{}"), str)); in BM_formatted_size_string()
|
| H A D | std_format_spec_string_unicode.bench.cpp | 242 assert(std::formatted_size("{}", input) == 3000); in BM_text()
|
| H A D | CMakeLists.txt | 183 formatted_size.bench.cpp
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | format | 99 size_t formatted_size(format-string<Args...> fmt, Args&&... args); 101 size_t formatted_size(wformat-string<Args...> fmt, Args&&... args); 103 size_t formatted_size(const locale& loc, format-string<Args...> fmt, Args&&... args); 105 size_t formatted_size(const locale& loc, wformat-string<Args...> fmt, Args&&... args); 648 formatted_size(format_string<_Args...> __fmt, _Args&&... __args) { 655 formatted_size(wformat_string<_Args...> __fmt, _Args&&... __args) { 789 formatted_size(locale __loc, format_string<_Args...> __fmt, _Args&&... __args) { 796 formatted_size(locale __loc, wformat_string<_Args...> __fmt, _Args&&... __args) {
|
| /llvm-project-15.0.7/libcxx/docs/ |
| H A D | ReleaseNotes.rst | 106 ``std::formatted_size``) now validate the format string at compile time.
|
| /llvm-project-15.0.7/libcxx/docs/Status/ |
| H A D | Cxx2bIssues.csv | 150 …/LWG3619>`__","Specification of ``vformat_to`` contains ill-formed ``formatted_size`` calls","Febr…
|
| /llvm-project-15.0.7/clang/docs/tools/ |
| H A D | clang-formatted-files.txt | 3387 libcxx/benchmarks/formatted_size.bench.cpp
|