Lines Matching refs:Policy
30 PrintingPolicy Policy;
53 DeclPrinter(raw_ostream &Out, const PrintingPolicy &Policy,
56 : Out(Out), Policy(Policy), Context(Context), Indentation(Indentation),
130 void Decl::print(raw_ostream &Out, const PrintingPolicy &Policy,
132 DeclPrinter Printer(Out, Policy, getASTContext(), Indentation,
143 const PrintingPolicy &Policy,
145 DeclPrinter Printer(Out, Policy, Context);
185 raw_ostream &Out, const PrintingPolicy &Policy,
188 (*Begin)->print(Out, Policy, Indentation);
197 PrintingPolicy SubPolicy(Policy);
234 if (Policy.PolishForDeclaration)
248 A->printPretty(Out, Policy);
256 if (Policy.PolishForDeclaration)
266 A->printPretty(Out, Policy);
284 T.print(Out, Policy, (Pack ? "..." : "") + DeclName, Indentation);
289 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation);
321 Out << QualType(BMInitializer->getBaseClass(), 0).getAsString(Policy);
348 SimpleInit->printPretty(Out, nullptr, Policy, Indentation, "\n",
358 Args[I]->printPretty(Out, nullptr, Policy, Indentation, "\n",
374 if (Policy.TerseOutput)
378 Indentation += Policy.Indentation;
434 Indentation -= Policy.Indentation;
438 Indentation += Policy.Indentation;
480 if (!Policy.TerseOutput &&
499 Indentation -= Policy.Indentation;
507 if (!Policy.SuppressSpecifiers) {
514 Ty.print(Out, Policy, D->getName(), Indentation);
521 Out << " = " << D->getTypeSourceInfo()->getType().getAsString(Policy);
525 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
541 Out << " : " << D->getIntegerType().stream(Policy);
551 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
572 Init->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
577 PrintingPolicy &Policy, unsigned Indentation,
583 ES.getExpr()->printPretty(EOut, nullptr, Policy, Indentation, "\n",
608 if (!Policy.SuppressSpecifiers) {
626 printExplicitSpecifier(ExplicitSpec, Out, Policy, Indentation, Context);
629 PrintingPolicy SubPolicy(Policy);
633 if (Policy.FullyQualifiedName) {
637 if (!Policy.SuppressScope) {
639 NS->print(OS, Policy);
642 D->getNameInfo().printName(OS, Policy);
654 if (TArgAsWritten && !Policy.PrintCanonicalTypes)
743 if (!Policy.TerseOutput)
752 AFT->getReturnType().print(Out, Policy, Proto);
763 Ty.print(Out, Policy, Proto);
775 if (!Policy.TerseOutput) {
781 Indentation += Policy.Indentation;
787 Indentation -= Policy.Indentation;
795 if (!Policy.TerseOutput && isa<CXXConstructorDecl>(*D))
807 Out << " " << TSI->getType().getAsString(Policy);
828 if (!Policy.SuppressSpecifiers && D->isMutable())
830 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
834 stream(Policy, D->getName(), Indentation);
838 D->getBitWidth()->printPretty(Out, nullptr, Policy, Indentation, "\n",
843 if (!Policy.SuppressInitializers && Init) {
848 Init->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
864 if (!Policy.SuppressSpecifiers) {
894 if (!Policy.SuppressInitializers && Init) {
910 PrintingPolicy SubPolicy(Policy);
927 D->getAsmString()->printPretty(Out, nullptr, Policy, Indentation, "\n",
939 D->getAssertExpr()->printPretty(Out, nullptr, Policy, Indentation, "\n",
943 SL->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
967 D->getQualifier()->print(Out, Policy);
974 D->getQualifier()->print(Out, Policy);
984 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
995 if (!Policy.PrintCanonicalTypes)
1023 Out << Base->getType().getAsString(Policy);
1032 if (Policy.TerseOutput) {
1102 Args[I].print(Policy, Out, /*IncludeType*/ true);
1105 Policy, Out,
1119 Args[I].getArgument().print(Policy, Out, /*IncludeType*/ true);
1122 Policy, Out,
1146 Concept->getConstraintExpr()->printPretty(Out, nullptr, Policy, Indentation,
1236 Out << Ctx.getUnqualifiedObjCPointerType(T).getAsString(Policy);
1266 Out << " : " << Param->getUnderlyingType().getAsString(Policy);
1305 if (OMD->getBody() && !Policy.TerseOutput) {
1307 OMD->getBody()->printPretty(Out, nullptr, Policy, Indentation, "\n",
1310 else if (Policy.PolishForDeclaration)
1327 Indentation += Policy.Indentation;
1330 getAsString(Policy) << ' ' << *I << ";\n";
1332 Indentation -= Policy.Indentation;
1367 Out << " : " << QualType(OID->getSuperClassType(), 0).getAsString(Policy);
1381 Indentation += Policy.Indentation;
1385 .getAsString(Policy) << ' ' << *I << ";\n";
1387 Indentation -= Policy.Indentation;
1446 Indentation += Policy.Indentation;
1449 getAsString(Policy) << ' ' << *I << ";\n";
1450 Indentation -= Policy.Indentation;
1573 getAsString(Policy);
1578 if (Policy.PolishForDeclaration)
1597 D->getQualifier()->print(Out, Policy);
1615 D->getQualifier()->print(Out, Policy);
1622 D->getQualifier()->print(Out, Policy);
1658 OMPClausePrinter Printer(Out, Policy);
1667 OMPClausePrinter Printer(Out, Policy);
1686 D->getType().print(Out, Policy);
1688 D->getCombiner()->printPretty(Out, nullptr, Policy, 0, "\n", &Context);
1702 Init->printPretty(Out, nullptr, Policy, 0, "\n", &Context);
1715 D->getType().print(Out, Policy);
1720 OMPClausePrinter Printer(Out, Policy);
1730 D->getInit()->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
1735 TC->print(Out, Policy);
1751 Out << TTP->getDefaultArgument().getAsString(Policy);
1764 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy, Indentation,