Lines Matching defs:Policy

31     PrintingPolicy Policy;
54 DeclPrinter(raw_ostream &Out, const PrintingPolicy &Policy,
57 : Out(Out), Policy(Policy), Context(Context), Indentation(Indentation),
135 void Decl::print(raw_ostream &Out, const PrintingPolicy &Policy,
137 DeclPrinter Printer(Out, Policy, getASTContext(), Indentation,
148 const PrintingPolicy &Policy,
150 DeclPrinter Printer(Out, Policy, Context);
193 raw_ostream &Out, const PrintingPolicy &Policy,
196 (*Begin)->print(Out, Policy, Indentation);
205 PrintingPolicy SubPolicy(Policy);
266 if (Policy.PolishForDeclaration && !A->isKeywordAttribute())
280 A->printPretty(Out, Policy);
293 if (Policy.PolishForDeclaration)
303 A->printPretty(Out, Policy);
321 T.print(Out, Policy, (Pack ? "..." : "") + DeclName, Indentation);
326 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation);
362 Out << QualType(BMInitializer->getBaseClass(), 0).getAsString(Policy);
390 SimpleInit->printPretty(Out, nullptr, Policy, Indentation, "\n",
400 Args[I]->printPretty(Out, nullptr, Policy, Indentation, "\n",
421 if (Policy.TerseOutput)
425 Indentation += Policy.Indentation;
481 Indentation -= Policy.Indentation;
485 Indentation += Policy.Indentation;
524 if (!Policy.TerseOutput &&
543 Indentation -= Policy.Indentation;
551 if (!Policy.SuppressSpecifiers) {
558 Ty.print(Out, Policy, D->getName(), Indentation);
565 Out << " = " << D->getTypeSourceInfo()->getType().getAsString(Policy);
569 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
585 Out << " : " << D->getIntegerType().stream(Policy);
595 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
616 Init->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
621 PrintingPolicy &Policy, unsigned Indentation,
627 ES.getExpr()->printPretty(EOut, nullptr, Policy, Indentation, "\n",
636 static void MaybePrintTagKeywordIfSupressingScopes(PrintingPolicy &Policy,
664 if (!Policy.SuppressSpecifiers) {
684 printExplicitSpecifier(ExplicitSpec, Out, Policy, Indentation, Context);
687 PrintingPolicy SubPolicy(Policy);
691 if (Policy.FullyQualifiedName) {
695 if (!Policy.SuppressScope) {
697 NS->print(OS, Policy);
700 D->getNameInfo().printName(OS, Policy);
709 if (TArgAsWritten && !Policy.PrintCanonicalTypes)
799 if (!Policy.TerseOutput)
808 if (!Policy.SuppressTagKeyword && Policy.SuppressScope &&
809 !Policy.SuppressUnwrittenScope)
810 MaybePrintTagKeywordIfSupressingScopes(Policy, AFT->getReturnType(),
812 AFT->getReturnType().print(Out, Policy, Proto);
823 Ty.print(Out, Policy, Proto);
840 if (!Policy.TerseOutput) {
846 Indentation += Policy.Indentation;
852 Indentation -= Policy.Indentation;
859 if (!Policy.TerseOutput && isa<CXXConstructorDecl>(*D))
871 Out << " " << TSI->getType().getAsString(Policy);
892 if (!Policy.SuppressSpecifiers && D->isMutable())
894 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
898 stream(Policy, D->getName(), Indentation);
902 D->getBitWidth()->printPretty(Out, nullptr, Policy, Indentation, "\n",
907 if (!Policy.SuppressInitializers && Init) {
912 Init->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
934 if (!Policy.SuppressSpecifiers) {
962 if (!Policy.SuppressTagKeyword && Policy.SuppressScope &&
963 !Policy.SuppressUnwrittenScope)
964 MaybePrintTagKeywordIfSupressingScopes(Policy, T, Out);
966 printDeclType(T, (isa<ParmVarDecl>(D) && Policy.CleanUglifiedParameters &&
974 if (!Policy.SuppressInitializers && Init) {
993 PrintingPolicy SubPolicy(Policy);
1009 D->getAsmString()->printPretty(Out, nullptr, Policy, Indentation, "\n",
1016 D->getStmt()->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
1026 D->getAssertExpr()->printPretty(Out, nullptr, Policy, Indentation, "\n",
1030 E->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
1054 D->getQualifier()->print(Out, Policy);
1061 D->getQualifier()->print(Out, Policy);
1071 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
1083 NNS->print(Out, Policy);
1091 if (TArgAsWritten && !Policy.PrintCanonicalTypes)
1118 Out << Base->getType().getAsString(Policy);
1128 if (Policy.TerseOutput) {
1193 RequiresClause->printPretty(Out, nullptr, Policy, Indentation, "\n",
1208 Args[I].print(Policy, Out, /*IncludeType*/ true);
1210 Args[I].print(Policy, Out,
1212 Policy, Params, I));
1224 Args[I].getArgument().print(Policy, Out, /*IncludeType*/ true);
1227 Policy, Out,
1228 TemplateParameterList::shouldIncludeTypeForArgument(Policy, Params,
1250 if (Policy.CleanUglifiedParameters && TTP->getIdentifier())
1259 Concept->getConstraintExpr()->printPretty(Out, nullptr, Policy, Indentation,
1349 Out << Ctx.getUnqualifiedObjCPointerType(T).getAsString(Policy);
1379 Out << " : " << Param->getUnderlyingType().getAsString(Policy);
1418 if (OMD->getBody() && !Policy.TerseOutput) {
1420 OMD->getBody()->printPretty(Out, nullptr, Policy, Indentation, "\n",
1423 else if (Policy.PolishForDeclaration)
1440 Indentation += Policy.Indentation;
1443 getAsString(Policy) << ' ' << *I << ";\n";
1445 Indentation -= Policy.Indentation;
1485 Out << " : " << QualType(OID->getSuperClassType(), 0).getAsString(Policy);
1499 Indentation += Policy.Indentation;
1503 .getAsString(Policy) << ' ' << *I << ";\n";
1505 Indentation -= Policy.Indentation;
1564 Indentation += Policy.Indentation;
1567 getAsString(Policy) << ' ' << *I << ";\n";
1568 Indentation -= Policy.Indentation;
1691 getAsString(Policy);
1696 if (Policy.PolishForDeclaration)
1715 D->getQualifier()->print(Out, Policy);
1737 D->getQualifier()->print(Out, Policy);
1744 D->getQualifier()->print(Out, Policy);
1794 OMPClausePrinter Printer(Out, Policy);
1805 OMPClausePrinter Printer(Out, Policy);
1821 D->printName(Out, Policy);
1824 D->getType().print(Out, Policy);
1826 D->getCombiner()->printPretty(Out, nullptr, Policy, 0, "\n", &Context);
1840 Init->printPretty(Out, nullptr, Policy, 0, "\n", &Context);
1851 D->printName(Out, Policy);
1853 D->getType().print(Out, Policy);
1858 OMPClausePrinter Printer(Out, Policy);
1868 D->getInit()->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
1873 TC->print(Out, Policy);
1885 if (Policy.CleanUglifiedParameters && TTP->getIdentifier())
1893 TTP->getDefaultArgument().getArgument().print(Policy, Out,
1903 Policy.CleanUglifiedParameters ? II->deuglifiedName() : II->getName();
1908 NTTP->getDefaultArgument().getArgument().print(Policy, Out,