Home
last modified time | relevance | path

Searched refs:__format (Results 1 – 25 of 38) sorted by relevance

12

/llvm-project-15.0.7/libcxx/test/libcxx/utilities/format/
H A Denable_insertable.compile.pass.cpp65 namespace std::__format { namespace
87 static_assert(!std::__format::__insertable<no_end<char>>);
88 static_assert(!std::__format::__insertable<no_insert<char>>);
90 static_assert(std::__format::__insertable<valid<char>>);
93 static_assert(!std::__format::__insertable<no_end<wchar_t>>);
96 static_assert(std::__format::__insertable<valid<wchar_t>>);
99 namespace std::__format { namespace
109 static_assert(std::__format::__insertable<std::string>);
112 static_assert(std::__format::__insertable<std::wstring>);
124 static_assert(std::__format::__insertable<std::list<char>>);
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/format/format.arguments/format.arg/
H A Darg_t.compile.pass.cpp23 static_assert(uint8_t(std::__format::__arg_t::__none) == 0);
24 static_assert(uint8_t(std::__format::__arg_t::__boolean) == 1);
25 static_assert(uint8_t(std::__format::__arg_t::__char_type) == 2);
26 static_assert(uint8_t(std::__format::__arg_t::__int) == 3);
28 static_assert(uint8_t(std::__format::__arg_t::__i128) == 5);
29 static_assert(uint8_t(std::__format::__arg_t::__unsigned) == 6);
31 static_assert(uint8_t(std::__format::__arg_t::__u128) == 8);
32 static_assert(uint8_t(std::__format::__arg_t::__float) == 9);
33 static_assert(uint8_t(std::__format::__arg_t::__double) == 10);
37 static_assert(uint8_t(std::__format::__arg_t::__ptr) == 14);
[all …]
/llvm-project-15.0.7/libcxx/src/support/solaris/
H A Dxlocale.cpp27 #define vsnprintf_l(__s, __n, __l, __format, __va) \ argument
28 vsnprintf(__s, __n, __format, __va)
30 int snprintf_l(char *__s, size_t __n, locale_t __l, const char *__format, ...) in snprintf_l() argument
33 va_start(__va, __format); in snprintf_l()
34 int __res = vsnprintf_l(__s, __n , __l, __format, __va); in snprintf_l()
39 int asprintf_l(char **__s, locale_t __l, const char *__format, ...) { in asprintf_l() argument
41 va_start(__va, __format); in asprintf_l()
43 int __res = vasprintf(__s, __format, __va); in asprintf_l()
48 int sscanf_l(const char *__s, locale_t __l, const char *__format, ...) { in sscanf_l() argument
50 va_start(__va, __format); in sscanf_l()
[all …]
/llvm-project-15.0.7/libcxx/include/__format/
H A Dformat_arg.h35 namespace __format {
92 case __format::__arg_t::__none: in decltype()
94 case __format::__arg_t::__boolean: in decltype()
98 case __format::__arg_t::__int: in decltype()
102 case __format::__arg_t::__i128: in decltype()
112 case __format::__arg_t::__u128: in decltype()
118 case __format::__arg_t::__float: in decltype()
120 case __format::__arg_t::__double: in decltype()
128 case __format::__arg_t::__ptr: in decltype()
130 case __format::__arg_t::__handle: in decltype()
[all …]
H A Dformat_arg_store.h31 namespace __format {
235 if constexpr (__format::__use_packed_format_arg_store(sizeof...(_Args))) in __format_arg_store()
236 __format::__create_packed_storage(__storage.__types_, __storage.__values_, __args...); in __format_arg_store()
238 __format::__store_basic_format_arg<_Context>(__storage.__args_, __args...); in __format_arg_store()
242 using _Storage = conditional_t<__format::__use_packed_format_arg_store(sizeof...(_Args)),
243 __format::__packed_format_arg_store<_Context, sizeof...(_Args)>,
244 __format::__unpacked_format_arg_store<_Context, sizeof...(_Args)>>;
H A Dformat_args.h38 if constexpr (__format::__use_packed_format_arg_store(sizeof...(_Args))) { in basic_format_args()
51 if (__format::__use_packed_format_arg_store(__size_)) in get()
52 … return basic_format_arg<_Context>{__format::__get_packed_type(__types_, __id), __values_[__id]}; in get()
H A Dparser_std_format_spec.h50 _LIBCPP_HIDE_FROM_ABI constexpr __format::__parse_number_result< _CharT>
57 __format::__parse_number_result __r = in __parse_arg_id()
58 __format::__parse_arg_id(__begin, __end, __parse_ctx); in __parse_arg_id()
80 using _CT = common_type_t<_Type, decltype(__format::__number_max)>; in __substitute_arg_id()
82 static_cast<_CT>(__format::__number_max)) in __substitute_arg_id()
414__format::__parse_number_result __r = __format_spec::__parse_arg_id(++__begin, __end, __parse_ctx); in __parse_width()
424 __format::__parse_number_result __r = __format::__parse_number(__begin, __end); in __parse_width()
442__format::__parse_number_result __arg_id = __format_spec::__parse_arg_id(++__begin, __end, __parse… in __parse_precision()
452 __format::__parse_number_result __r = __format::__parse_number(__begin, __end); in __parse_precision()
H A Dformat_string.h27 namespace __format {
89 static_assert(__format::__number_max == INT32_MAX, in __parse_number()
H A Dformat_context.h67 basic_format_context<back_insert_iterator<__format::__output_buffer<char>>,
71 back_insert_iterator<__format::__output_buffer<wchar_t>>, wchar_t>;
H A Denable_insertable.h23 namespace __format {
/llvm-project-15.0.7/libcxx/include/
H A Dformat147 #include <__format/buffer.h>
148 #include <__format/concepts.h>
150 #include <__format/format_arg.h>
152 #include <__format/format_args.h>
155 #include <__format/format_fwd.h>
159 #include <__format/formatter.h>
167 #include <__format/unicode.h>
213 namespace __format {
475 } // namespace __format
503 if (__format::__determine_arg_t<_Context, _Tp>() == __format::__arg_t::__handle)
[all …]
H A D__bsd_locale_fallbacks.h112 int __libcpp_snprintf_l(char *__s, size_t __n, locale_t __l, const char *__format, ...) { in __libcpp_snprintf_l() argument
114 va_start(__va, __format); in __libcpp_snprintf_l()
116 int __res = vsnprintf(__s, __n, __format, __va); in __libcpp_snprintf_l()
122 int __libcpp_asprintf_l(char **__s, locale_t __l, const char *__format, ...) { in __libcpp_asprintf_l() argument
124 va_start(__va, __format); in __libcpp_asprintf_l()
126 int __res = vasprintf(__s, __format, __va); in __libcpp_asprintf_l()
132 int __libcpp_sscanf_l(const char *__s, locale_t __l, const char *__format, ...) { in __libcpp_sscanf_l() argument
134 va_start(__va, __format); in __libcpp_sscanf_l()
136 int __res = vsscanf(__s, __format, __va); in __libcpp_sscanf_l()
H A DCMakeLists.txt283 __format/buffer.h
284 __format/concepts.h
287 __format/format_arg.h
289 __format/format_args.h
290 __format/format_context.h
291 __format/format_error.h
292 __format/format_fwd.h
294 __format/format_string.h
296 __format/formatter.h
297 __format/formatter_bool.h
[all …]
H A Dmodule.modulemap.in631 module __format {
632 module buffer { private header "__format/buffer.h" }
633 module concepts { private header "__format/concepts.h" }
636 module format_arg { private header "__format/format_arg.h" }
638 module format_args { private header "__format/format_args.h" }
640 private header "__format/format_context.h"
644 module format_error { private header "__format/format_error.h" }
645 module format_fwd { private header "__format/format_fwd.h" }
647 module format_string { private header "__format/format_string.h" }
649 module formatter { private header "__format/formatter.h" }
[all …]
/llvm-project-15.0.7/llvm/utils/gn/secondary/libcxx/include/
H A DBUILD.gn344 "__format/buffer.h",
345 "__format/concepts.h",
348 "__format/format_arg.h",
350 "__format/format_args.h",
351 "__format/format_context.h",
352 "__format/format_error.h",
353 "__format/format_fwd.h",
355 "__format/format_string.h",
357 "__format/formatter.h",
358 "__format/formatter_bool.h",
[all …]
/llvm-project-15.0.7/libcxx/include/__support/solaris/
H A Dxlocale.h23 int snprintf_l(char *__s, size_t __n, locale_t __l, const char *__format, ...);
24 int asprintf_l(char **__s, locale_t __l, const char *__format, ...);
26 int sscanf_l(const char *__s, locale_t __l, const char *__format, ...);
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/format/format.formatter/format.context/
H A Dtypes.compile.pass.cpp99 test<std::back_insert_iterator<std::__format::__output_buffer<char>>, char>(); in test()
101 test<std::back_insert_iterator<std::__format::__output_buffer<wchar_t>>, in test()
116 std::back_insert_iterator<std::__format::__output_buffer<char>>,
125 std::back_insert_iterator< std::__format::__output_buffer<wchar_t>>,
/llvm-project-15.0.7/clang/test/Sema/
H A Dimplicit-decl.c13 extern int printf(__const char *__restrict __format, ...); // werror-note{{'printf' declared here}}…
43 extern int sformatf(char *str, __const char *__restrict __format, ...); // werror-note{{'sformatf' …
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/MachO/Inputs/
H A Dcode-signature-check.py176 … return CodeDirectoryBlobIndex._make(struct.unpack_from(CodeDirectoryBlobIndex.__format(), buf, 0))
180 return struct.calcsize(CodeDirectoryBlobIndex.__format())
183 def __format() -> str: member in CodeDirectoryBlobIndex
/llvm-project-15.0.7/lld/test/MachO/Inputs/
H A Dcode-signature-check.py176 … return CodeDirectoryBlobIndex._make(struct.unpack_from(CodeDirectoryBlobIndex.__format(), buf, 0))
180 return struct.calcsize(CodeDirectoryBlobIndex.__format())
183 def __format() -> str: member in CodeDirectoryBlobIndex
/llvm-project-15.0.7/libcxx/include/__support/xlocale/
H A D__posix_l_fallback.h145 strftime_l(char *__s, size_t __max, const char *__format, const struct tm *__tm, in strftime_l() argument
147 return ::strftime(__s, __max, __format, __tm); in strftime_l()
/llvm-project-15.0.7/clang/test/PCH/
H A Dpr4489.c10 __const char *__restrict __format, ...);
/llvm-project-15.0.7/clang/test/Analysis/
H A Dvalist-as-lazycompound.c9 const char *__restrict __format, __gnuc_va_list
/llvm-project-15.0.7/libcxx/include/__support/win32/
H A Dlocale_win32.h267 _LIBCPP_FUNC_VIS int snprintf_l(char *__ret, size_t __n, locale_t __loc, const char *__format, ...);
268 _LIBCPP_FUNC_VIS int asprintf_l( char **__ret, locale_t __loc, const char *__format, ... );
269 _LIBCPP_FUNC_VIS int vasprintf_l( char **__ret, locale_t __loc, const char *__format, va_list __ap …
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dunion-tbaa2.cpp5 extern "C" int printf (const char *__restrict __format, ...);

12