Home
last modified time | relevance | path

Searched refs:basic_format_string (Results 1 – 9 of 9) sorted by relevance

/llvm-project/libcxx/test/std/utilities/format/format.fmt.string/
H A Dctor.verify.cpp31 (void)std::basic_format_string<char>{"foo"}; in run()
32 …(void)std::basic_format_string<char>{"{}"}; // expected-error-re {{call to consteval function{{.*}… in run()
33 …(void)std::basic_format_string<char, int>{"{0:{0}P}"}; // expected-error-re {{call to consteval fu… in run()
34 (void)std::basic_format_string<char, int>{"{0:{0}}"}; in run()
35 …(void)std::basic_format_string<char, bool>{"{0:{0}}"}; // expected-error-re {{call to consteval fu… in run()
36 …(void)std::basic_format_string<char, int>{"{.3}"}; // expected-error-re {{call to consteval functi… in run()
38 (void)std::basic_format_string<wchar_t>{L"foo"}; in run()
39 …(void)std::basic_format_string<wchar_t>{L"{}"}; // expected-error-re {{call to consteval function{… in run()
40 …(void)std::basic_format_string<wchar_t, int>{L"{0:{0}P}"}; // expected-error-re {{call to consteva… in run()
41 (void)std::basic_format_string<wchar_t, int>{L"{0:{0}}"}; in run()
[all …]
H A Dtypes.compile.pass.cpp29 static_assert(std::same_as<std::format_string<>, std::basic_format_string<char>>);
30 static_assert(std::same_as<std::format_string<int>, std::basic_format_string<char, int>>);
31 static_assert(std::same_as<std::format_string<int, bool>, std::basic_format_string<char, int, bool>…
32 static_assert(std::same_as<std::format_string<int, bool, void*>, std::basic_format_string<char, int…
34 static_assert(std::same_as<std::wformat_string<>, std::basic_format_string<wchar_t>>);
35 static_assert(std::same_as<std::wformat_string<int>, std::basic_format_string<wchar_t, int>>);
36 static_assert(std::same_as<std::wformat_string<int, bool>, std::basic_format_string<wchar_t, int, b…
37 static_assert(std::same_as<std::wformat_string<int, bool, void*>, std::basic_format_string<wchar_t,…
H A Dget.pass.cpp35 assert((std::basic_format_string<CharT>{CSTR("foo")}.get() == SV("foo"))); in test()
36 assert((std::basic_format_string<CharT, int>{CSTR("{}")}.get() == SV("{}"))); in test()
37 assert((std::basic_format_string<CharT, int, char>{CSTR("{} {:*>6}")}.get() == SV("{} {:*>6}"))); in test()
40 assert((std::basic_format_string<CharT, void*, bool>{SV("{}\0{}")}.get() == SV("{}\0{}"))); in test()
/llvm-project/clang/test/Modules/
H A Dpr58716.cppm34 struct basic_format_string {
36 consteval basic_format_string(const _Tp& __str) : __str_{__str} {
45 std::basic_format_string<char> __fmt("{}");
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Dredundant-string-cstr-format.cpp12 struct basic_format_string { struct
13 consteval basic_format_string(const CharT *format) : str(format) {} in basic_format_string() function
18 using format_string = basic_format_string<char, type_identity_t<Args>...>;
21 using wformat_string = basic_format_string<wchar_t, type_identity_t<Args>...>;
/llvm-project/libcxx/include/
H A Dformat26 // [format.fmt.string], class template basic_format_string
28 struct basic_format_string { // since C++23, exposition only before C++23
33 template<class T> consteval basic_format_string(const T& s);
34 basic_format_string(runtime-format-string<charT> s) noexcept : str(s.str) {} // since C++26
40 basic_format_string<char, type_identity_t<Args>...>;
43 basic_format_string<wchar_t, type_identity_t<Args>...>;
/llvm-project/libcxx/modules/std/
H A Dformat.inc25 // [format.fmt.string], class template basic_format_string
26 using std::basic_format_string;
/llvm-project/libcxx/include/__format/
H A Dformat_functions.h111 // validation of the basic_format_string.
347 friend struct _LIBCPP_TEMPLATE_VIS basic_format_string;
365 struct _LIBCPP_TEMPLATE_VIS basic_format_string {
368 consteval basic_format_string(const _Tp& __str) : __str_{__str} {
375 _LIBCPP_HIDE_FROM_ABI basic_format_string(__runtime_format_string<_CharT> __s) noexcept : __str_(__s.__str_) {}
397 using format_string = basic_format_string<char, type_identity_t<_Args>...>;
401 using wformat_string = basic_format_string<wchar_t, type_identity_t<_Args>...>;
348 friend struct _LIBCPP_TEMPLATE_VIS basic_format_string; global() member
366 struct _LIBCPP_TEMPLATE_VIS basic_format_string { global() struct
369 basic_format_stringbasic_format_string basic_format_string() argument
376 basic_format_stringbasic_format_string basic_format_string() argument
398 __handlebasic_format_string global() argument
/llvm-project/libcxx/docs/
H A DUsingLibcxx.rst