Searched refs:FormatAdapter (Results 1 – 8 of 8) sorted by relevance
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | FormatAdapters.h | 19 template <typename T> class FormatAdapter : public detail::format_adapter { 21 explicit FormatAdapter(T &&Item) : Item(std::forward<T>(Item)) {} in FormatAdapter() function 27 template <typename T> class AlignAdapter final : public FormatAdapter<T> { 34 : FormatAdapter<T>(std::forward<T>(Item)), Where(Where), Amount(Amount), in AlignAdapter() 43 template <typename T> class PadAdapter final : public FormatAdapter<T> { 49 : FormatAdapter<T>(std::forward<T>(Item)), Left(Left), Right(Right) {} in PadAdapter() 59 template <typename T> class RepeatAdapter final : public FormatAdapter<T> { 64 : FormatAdapter<T>(std::forward<T>(Item)), Count(Count) {} in RepeatAdapter() 74 class ErrorAdapter : public FormatAdapter<Error> { 76 ErrorAdapter(Error &&Item) : FormatAdapter(std::move(Item)) {} in ErrorAdapter()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/ |
| H A D | Formatters.cpp | 23 : FormatAdapter(makeArrayRef(Guid.bytes_begin(), Guid.bytes_end())) {} in GuidAdapter() 26 : FormatAdapter(std::move(Guid)) {} in GuidAdapter()
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | FormatUtil.h | 109 : public FormatAdapter<support::detail::packed_endian_specific_integral< 116 : FormatAdapter<EndianType>(std::move(Item)) {} in EndianAdapter()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | TwineTest.cpp | 112 struct formatter : FormatAdapter<int> { in TEST() 113 explicit formatter(int &Count) : FormatAdapter(0), Count(Count) {} in TEST()
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | Formatters.h | 29 class GuidAdapter final : public FormatAdapter<ArrayRef<uint8_t>> {
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | FormatVariadicTest.cpp | 18 struct Format : public FormatAdapter<int> { 19 Format(int N) : FormatAdapter<int>(std::move(N)) {} in Format() 605 class Negative : public FormatAdapter<int> { in TEST() 607 explicit Negative(int N) : FormatAdapter<int>(std::move(N)) {} in TEST() 642 TEST(FormatVariadicTest, FormatAdapter) { in TEST() argument
|
| /llvm-project-15.0.7/llvm/tools/llvm-xray/ |
| H A D | xray-stacks.cpp | 112 struct format_xray_record : public FormatAdapter<XRayRecord> { 115 : FormatAdapter<XRayRecord>(std::move(record)), Converter(&conv) {} in format_xray_record()
|
| /llvm-project-15.0.7/llvm/docs/ |
| H A D | ProgrammersManual.rst | 340 2. Provide a **format adapter** inheriting from ``llvm::FormatAdapter<T>``. 345 struct format_int_custom : public llvm::FormatAdapter<int> { 346 explicit format_int_custom(int N) : llvm::FormatAdapter<int>(N) {} 358 If the type is detected to be derived from ``FormatAdapter<T>``, ``formatv``
|