Home
last modified time | relevance | path

Searched refs:AlignStyle (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Support/
H A DFormatVariadic.cpp13 static Optional<AlignStyle> translateLocChar(char C) { in translateLocChar()
16 return AlignStyle::Left; in translateLocChar()
18 return AlignStyle::Center; in translateLocChar()
20 return AlignStyle::Right; in translateLocChar()
27 bool formatv_object_base::consumeFieldLayout(StringRef &Spec, AlignStyle &Where, in consumeFieldLayout()
29 Where = AlignStyle::Right; in consumeFieldLayout()
65 AlignStyle Where = AlignStyle::Right; in parseReplacementItem()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DFormatCommon.h17 enum class AlignStyle { Left, Center, Right }; enum
21 AlignStyle Where;
25 FmtAlign(detail::format_adapter &Adapter, AlignStyle Where, size_t Amount,
50 case AlignStyle::Left: in format()
54 case AlignStyle::Center: { in format()
H A DFormatVariadic.h52 ReplacementItem(StringRef Spec, size_t Index, size_t Align, AlignStyle Where, in ReplacementItem()
61 AlignStyle Where = AlignStyle::Right;
71 static bool consumeFieldLayout(StringRef &Spec, AlignStyle &Where,
H A DFormatAdapters.h28 AlignStyle Where;
33 AlignAdapter(T &&Item, AlignStyle Where, size_t Amount, char Fill) in AlignAdapter()
86 detail::AlignAdapter<T> fmt_align(T &&Item, AlignStyle Where, size_t Amount,
/llvm-project-15.0.7/llvm/unittests/Support/
H A DFormatVariadicTest.cpp91 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where); in TEST()
100 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where); in TEST()
109 EXPECT_EQ(AlignStyle::Left, Replacements[0].Where); in TEST()
127 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where); in TEST()
136 EXPECT_EQ(AlignStyle::Left, Replacements[0].Where); in TEST()
145 EXPECT_EQ(AlignStyle::Left, Replacements[0].Where); in TEST()
156 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where); in TEST()
166 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where); in TEST()
177 EXPECT_EQ(AlignStyle::Right, Replacements[0].Where); in TEST()
187 EXPECT_EQ(AlignStyle::Left, Replacements[0].Where); in TEST()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-pdbutil/
H A DDumpOutputStyle.cpp365 fmt_align(StreamIdx, AlignStyle::Right, NumDigits(StreamCount)), in dumpStreamSummary()
442 fmt_align(NameInsert, AlignStyle::Left, FieldWidth + 2)); in dumpSectionContrib()
761 fmt_align("Record Kind", AlignStyle::Right, FieldWidth), in dumpUdtStats()
762 fmt_align(CountHeader, AlignStyle::Right, CD), in dumpUdtStats()
763 fmt_align(SizeHeader, AlignStyle::Right, SD)); in dumpUdtStats()
769 fmt_align(Label, AlignStyle::Right, FieldWidth), in dumpUdtStats()
770 fmt_align(Stat.second.Count, AlignStyle::Right, CD), in dumpUdtStats()
771 fmt_align(Stat.second.Size, AlignStyle::Right, SD)); in dumpUdtStats()
795 fmt_align(Label, AlignStyle::Right, FieldWidth), in dumpUdtStats()
796 fmt_align(Stat.Stat.Count, AlignStyle::Right, CD), in dumpUdtStats()
[all …]
H A DMinimalTypeDumper.cpp230 fmt_align(Index, AlignStyle::Right, Width), in visitTypeBegin()
313 P.formatLine("{0}: `{1}`", fmt_align(I, AlignStyle::Right, W), in visitKnownRecord()
328 P.formatLine("{0}: `{1}`", fmt_align(I, AlignStyle::Right, W), in visitKnownRecord()
498 P.formatLine("{0}: `{1}`", fmt_align(I, AlignStyle::Right, W), in visitKnownRecord()
H A DBytesOutputStyle.cpp329 fmt_align(I, AlignStyle::Right, std::max(Digits, 4U))); in iterateOneModule()
335 fmt_align(I, AlignStyle::Right, std::max(Digits, 4U)), in iterateOneModule()
H A DMinimalSymbolDumper.cpp368 fmt_align(Offset, AlignStyle::Right, 6), in visitSymbolBegin()
698 P.formatLine(" {0}", fmt_align(toHex(Annot.Bytes), AlignStyle::Left, 9)); in visitKnownRecord()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DDebugSupport.cpp30 using llvm::AlignStyle;
181 AlignStyle::Left, MaxNameLength), in debugString()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/Native/
H A DInputFile.h171 fmt_align(Modi, AlignStyle::Right, HeaderScope.LabelWidth), SG.name()); in iterateOneModule()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DLinePrinter.cpp244 fmt_align("<discontinuity>", AlignStyle::Center, 114, '-')); in formatMsfStreamData()
/llvm-project-15.0.7/clang/unittests/Format/
H A DFormatTest.cpp23547 FormatStyle AlignStyle = getLLVMStyle(); in TEST_F() local
23548 AlignStyle.PointerAlignment = FormatStyle::PAS_Left; in TEST_F()
23549 verifyFormat("auto lambda = [&a = a]() { a = 2; };", AlignStyle); in TEST_F()
23550 AlignStyle.PointerAlignment = FormatStyle::PAS_Right; in TEST_F()
23551 verifyFormat("auto lambda = [&a = a]() { a = 2; };", AlignStyle); in TEST_F()
/llvm-project-15.0.7/lldb/source/Commands/
H A DCommandObjectTarget.cpp3190 llvm::AlignStyle::Left, width)); in PrintModule()
/llvm-project-15.0.7/llvm/docs/
H A DProgrammersManual.rst390 S = formatv("{0}", fmt_align(42, AlignStyle::Center, 7)); // S == " 42 "