• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/tools/llvm-pdbutil/

Lines Matching defs:Printer

89 filterAndSortClassDefs(LinePrinter &Printer, Enumerator &E,
115 if (Printer.IsTypeExcluded(Class->getName(), Class->getLength())) {
138 TypeDumper::TypeDumper(LinePrinter &P) : PDBSymDumper(true), Printer(P) {}
141 static bool isTypeExcluded(LinePrinter &Printer, const T &Symbol) {
145 static bool isTypeExcluded(LinePrinter &Printer,
147 if (Printer.IsTypeExcluded(Enum.getName(), Enum.getLength()))
155 static bool isTypeExcluded(LinePrinter &Printer,
157 return Printer.IsTypeExcluded(Typedef.getName(), Typedef.getLength());
161 static void dumpSymbolCategory(LinePrinter &Printer, const PDBSymbolExe &Exe,
164 Printer.NewLine();
165 WithColor(Printer, PDB_ColorItem::Identifier).get() << Label;
166 Printer << ": (" << Children->getChildCount() << " items)";
167 Printer.Indent();
169 if (isTypeExcluded(Printer, *Child))
172 Printer.NewLine();
175 Printer.Unindent();
179 static void printClassDecl(LinePrinter &Printer,
183 WithColor(Printer, PDB_ColorItem::Keyword).get() << "const ";
185 WithColor(Printer, PDB_ColorItem::Keyword).get() << "volatile ";
187 WithColor(Printer, PDB_ColorItem::Keyword).get() << "unaligned ";
189 WithColor(Printer, PDB_ColorItem::Keyword).get() << Class.getUdtKind() << " ";
190 WithColor(Printer, PDB_ColorItem::Type).get() << Class.getName();
195 dumpSymbolCategory<PDBSymbolTypeEnum>(Printer, Exe, *this, "Enums");
198 dumpSymbolCategory<PDBSymbolTypeFunctionSig>(Printer, Exe, *this,
202 dumpSymbolCategory<PDBSymbolTypeTypedef>(Printer, Exe, *this, "Typedefs");
205 dumpSymbolCategory<PDBSymbolTypeArray>(Printer, Exe, *this, "Arrays");
208 dumpSymbolCategory<PDBSymbolTypePointer>(Printer, Exe, *this, "Pointers");
211 dumpSymbolCategory<PDBSymbolTypeVTableShape>(Printer, Exe, *this,
218 Printer.NewLine();
219 WithColor(Printer, PDB_ColorItem::Identifier).get() << "Classes";
233 Filtered = filterAndSortClassDefs(Printer, *Classes, All);
238 Printer << ": (Showing " << Shown << " items";
240 Printer << ", " << (All - Shown) << " filtered";
241 Printer << ")";
242 Printer.Indent();
251 if (Printer.IsTypeExcluded(Class->getName(), Class->getLength()))
257 Printer.NewLine();
258 printClassDecl(Printer, *Class);
270 Printer.Unindent();
278 EnumDumper Dumper(Printer);
283 BuiltinDumper BD(Printer);
288 printClassDecl(Printer, Symbol);
294 TypedefDumper Dumper(Printer);
302 Printer << "[";
303 WithColor(Printer, PDB_ColorItem::LiteralValue).get() << Symbol.getCount();
304 Printer << "]";
308 FunctionDumper Dumper(Printer);
316 FunctionDumper Dumper(Printer);
325 printClassDecl(Printer, *UDT);
333 Printer << " " << UDT->getName() << "::";
337 Printer << "&";
339 Printer << "&&";
341 Printer << "*";
345 Printer.format("<vtshape ({0} methods)>", Symbol.getCount());
352 WithColor(Printer, PDB_ColorItem::Keyword).get()
354 WithColor(Printer, PDB_ColorItem::Type).get() << Class.getName();
356 ClassDefinitionDumper Dumper(Printer);