Lines Matching refs:Policy
30 PrintingPolicy Policy;
50 DeclPrinter(raw_ostream &Out, const PrintingPolicy &Policy,
52 : Out(Out), Policy(Policy), Indentation(Indentation),
111 void Decl::print(raw_ostream &Out, const PrintingPolicy &Policy,
113 DeclPrinter Printer(Out, Policy, Indentation, PrintInstantiation);
152 raw_ostream &Out, const PrintingPolicy &Policy,
155 (*Begin)->print(Out, Policy, Indentation);
164 PrintingPolicy SubPolicy(Policy);
201 if (Policy.PolishForDeclaration)
213 A->printPretty(Out, Policy);
221 if (Policy.PolishForDeclaration)
231 A->printPretty(Out, Policy);
249 T.print(Out, Policy, (Pack ? "..." : "") + DeclName, Indentation);
254 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation);
274 if (Policy.TerseOutput)
278 Indentation += Policy.Indentation;
325 Indentation -= Policy.Indentation;
329 Indentation += Policy.Indentation;
374 Indentation -= Policy.Indentation;
382 if (!Policy.SuppressSpecifiers) {
389 Ty.print(Out, Policy, D->getName(), Indentation);
396 Out << " = " << D->getTypeSourceInfo()->getType().getAsString(Policy);
400 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
412 Out << " : " << D->getIntegerType().stream(Policy);
423 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
443 Init->printPretty(Out, nullptr, Policy, Indentation);
454 if (!Policy.SuppressSpecifiers) {
473 PrintingPolicy SubPolicy(Policy);
574 Out << QualType(BMInitializer->getBaseClass(), 0).getAsString(Policy);
601 SimpleInit->printPretty(Out, nullptr, Policy, Indentation);
610 Args[I]->printPretty(Out, nullptr, Policy, Indentation);
623 AFT->getReturnType().print(Out, Policy, Proto);
628 Ty.print(Out, Policy, Proto);
639 else if (D->doesThisDeclarationHaveABody() && !Policy.TerseOutput) {
645 Indentation += Policy.Indentation;
651 Indentation -= Policy.Indentation;
667 Out << " " << TSI->getType().getAsString(Policy);
688 if (!Policy.SuppressSpecifiers && D->isMutable())
690 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
694 stream(Policy, D->getName(), Indentation);
698 D->getBitWidth()->printPretty(Out, nullptr, Policy, Indentation);
702 if (!Policy.SuppressInitializers && Init) {
707 Init->printPretty(Out, nullptr, Policy, Indentation);
723 if (!Policy.SuppressSpecifiers) {
753 if (!Policy.SuppressInitializers && Init) {
769 PrintingPolicy SubPolicy(Policy);
786 D->getAsmString()->printPretty(Out, nullptr, Policy, Indentation);
797 D->getAssertExpr()->printPretty(Out, nullptr, Policy, Indentation);
800 SL->printPretty(Out, nullptr, Policy, Indentation);
819 D->getQualifier()->print(Out, Policy);
826 D->getQualifier()->print(Out, Policy);
836 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
862 Out << Base->getType().getAsString(Policy);
923 Args->get(i).print(Policy, Out);
926 Out << TTP->getDefaultArgument().getAsString(Policy);
937 Args->get(i).print(Policy, Out);
940 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy,
1019 Out << Ctx.getUnqualifiedObjCPointerType(T).getAsString(Policy);
1049 Out << " : " << Param->getUnderlyingType().getAsString(Policy);
1086 if (OMD->getBody() && !Policy.TerseOutput) {
1088 OMD->getBody()->printPretty(Out, nullptr, Policy);
1090 else if (Policy.PolishForDeclaration)
1107 Indentation += Policy.Indentation;
1110 getAsString(Policy) << ' ' << *I << ";\n";
1112 Indentation -= Policy.Indentation;
1147 Out << " : " << QualType(OID->getSuperClassType(), 0).getAsString(Policy);
1161 Indentation += Policy.Indentation;
1165 .getAsString(Policy) << ' ' << *I << ";\n";
1167 Indentation -= Policy.Indentation;
1217 Indentation += Policy.Indentation;
1220 getAsString(Policy) << ' ' << *I << ";\n";
1221 Indentation -= Policy.Indentation;
1328 getAsString(Policy) << ' ' << *PDecl;
1329 if (Policy.PolishForDeclaration)
1348 D->getQualifier()->print(Out, Policy);
1355 D->getQualifier()->print(Out, Policy);
1362 D->getQualifier()->print(Out, Policy);
1403 D->getType().print(Out, Policy);
1405 D->getCombiner()->printPretty(Out, nullptr, Policy, 0);
1409 Init->printPretty(Out, nullptr, Policy, 0);
1416 D->getInit()->printPretty(Out, nullptr, Policy, Indentation);