Lines Matching defs:Out

38     ASTPrinter(raw_ostream *Out = nullptr, bool Dump = false,
40 : Out(Out ? *Out : llvm::outs()), Dump(Dump),
56 bool ShowColors = Out.has_colors();
58 Out.changeColor(raw_ostream::BLUE);
59 Out << ((Dump || DumpLookups) ? "Dumping " : "Printing ") << getName(D)
62 Out.resetColor();
64 Out << "\n";
84 DC->dumpLookups(Out, Dump);
86 Out << "Lookup map is in primary DeclContext "
89 Out << "Not a DeclContext\n";
91 D->dump(Out);
93 D->print(Out, /*Indentation=*/0, /*PrintInstantiation=*/true);
96 raw_ostream &Out;
105 ASTDeclNodeLister(raw_ostream *Out = nullptr)
106 : Out(Out ? *Out : llvm::outs()) {}
115 D->printQualifiedName(Out);
116 Out << '\n';
121 raw_ostream &Out;
125 std::unique_ptr<ASTConsumer> clang::CreateASTPrinter(raw_ostream *Out,
127 return llvm::make_unique<ASTPrinter>(Out, /*Dump=*/false, FilterString);
185 raw_ostream& Out;
187 DeclContextPrinter() : Out(llvm::errs()) {}
202 Out << "[translation unit] " << DC;
205 Out << "[namespace] ";
207 Out << *ND;
213 Out << "[enum] ";
215 Out << "<enum> ";
216 Out << *ED;
222 Out << "[struct] ";
224 Out << "<struct> ";
225 Out << *RD;
231 Out << "[class] ";
233 Out << "<class> ";
234 Out << *RD << ' ' << DC;
238 Out << "[objc method]";
241 Out << "[objc interface]";
244 Out << "[objc category]";
247 Out << "[objc protocol]";
250 Out << "[objc implementation]";
253 Out << "[objc categoryimpl]";
256 Out << "[linkage spec]";
259 Out << "[block]";
264 Out << "[function] ";
266 Out << "<function> ";
267 Out << *FD;
269 Out << "(";
273 Out << ", ";
276 Out << *I;
278 Out << ")";
284 Out << "[c++ method] ";
286 Out << "(c++ method) ";
288 Out << "<c++ method> ";
289 Out << *D;
291 Out << "(";
295 Out << ", ";
298 Out << *Parameter;
300 Out << ")";
306 Out << " [[" << SemaDC << "]]";
313 Out << "[c++ ctor] ";
315 Out << "(c++ ctor) ";
317 Out << "<c++ ctor> ";
318 Out << *D;
320 Out << "(";
324 Out << ", ";
327 Out << *Parameter;
329 Out << ")";
335 Out << " [[" << SemaDC << "]]";
341 Out << "[c++ dtor] ";
343 Out << "(c++ dtor) ";
345 Out << "<c++ dtor> ";
346 Out << *D;
351 Out << " [[" << SemaDC << "]]";
357 Out << "[c++ conversion] ";
359 Out << "(c++ conversion) ";
361 Out << "<c++ conversion> ";
362 Out << *D;
367 Out << " [[" << SemaDC << "]]";
375 Out << "\n";
380 Out << " ";
408 Out << "<IndirectField> " << *IFD << '\n';
413 Out << "<Label> " << *LD << '\n';
418 Out << "<field> " << *FD << '\n';
424 Out << "<typedef> " << *TD << '\n';
429 Out << "<enum constant> " << *ECD << '\n';
434 Out << "<var> " << *VD << '\n';
439 Out << "<implicit parameter> " << *IPD << '\n';
444 Out << "<parameter> " << *PVD << '\n';
449 Out << "<objc property> " << *OPD << '\n';
454 Out << "<function template> " << *FTD << '\n';
458 Out << "<file-scope asm>\n";
462 Out << "<using directive>\n";
467 Out << "<namespace alias> " << *NAD << '\n';
472 Out << "<class template> " << *CTD << '\n';
476 Out << "<omp threadprivate> " << '"' << I << "\"\n";
480 Out << "DeclKind: " << DK << '"' << I << "\"\n";