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",
635 static void MaybePrintTagKeywordIfSupressingScopes(PrintingPolicy &Policy,
663 if (!Policy.SuppressSpecifiers) {
683 printExplicitSpecifier(ExplicitSpec, Out, Policy, Indentation, Context);
686 PrintingPolicy SubPolicy(Policy);
690 if (Policy.FullyQualifiedName) {
694 if (!Policy.SuppressScope) {
696 NS->print(OS, Policy);
699 D->getNameInfo().printName(OS, Policy);
708 if (TArgAsWritten && !Policy.PrintCanonicalTypes)
797 if (!Policy.TerseOutput)
806 if (!Policy.SuppressTagKeyword && Policy.SuppressScope &&
807 !Policy.SuppressUnwrittenScope)
808 MaybePrintTagKeywordIfSupressingScopes(Policy, AFT->getReturnType(),
810 AFT->getReturnType().print(Out, Policy, Proto);
821 Ty.print(Out, Policy, Proto);
838 if (!Policy.TerseOutput) {
844 Indentation += Policy.Indentation;
850 Indentation -= Policy.Indentation;
857 if (!Policy.TerseOutput && isa<CXXConstructorDecl>(*D))
869 Out << TSI->getType().getAsString(Policy);
893 if (!Policy.SuppressSpecifiers && D->isMutable())
895 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
899 stream(Policy, D->getName(), Indentation);
903 D->getBitWidth()->printPretty(Out, nullptr, Policy, Indentation, "\n",
908 if (!Policy.SuppressInitializers && Init) {
913 Init->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
935 if (!Policy.SuppressSpecifiers) {
963 if (!Policy.SuppressTagKeyword && Policy.SuppressScope &&
964 !Policy.SuppressUnwrittenScope)
965 MaybePrintTagKeywordIfSupressingScopes(Policy, T, Out);
967 printDeclType(T, (isa<ParmVarDecl>(D) && Policy.CleanUglifiedParameters &&
975 if (!Policy.SuppressInitializers && Init) {
994 PrintingPolicy SubPolicy(Policy);
1010 D->getAsmString()->printPretty(Out, nullptr, Policy, Indentation, "\n",
1017 D->getStmt()->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
1027 D->getAssertExpr()->printPretty(Out, nullptr, Policy, Indentation, "\n",
1031 E->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
1055 D->getQualifier()->print(Out, Policy);
1062 D->getQualifier()->print(Out, Policy);
1072 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
1084 NNS->print(Out, Policy);
1092 if (TArgAsWritten && !Policy.PrintCanonicalTypes)
1119 Out << Base->getType().getAsString(Policy);
1129 if (Policy.TerseOutput) {
1194 RequiresClause->printPretty(Out, nullptr, Policy, Indentation, "\n",
1209 Args[I].print(Policy, Out, /*IncludeType*/ true);
1211 Args[I].print(Policy, Out,
1213 Policy, Params, I));
1225 Args[I].getArgument().print(Policy, Out, /*IncludeType*/ true);
1228 Policy, Out,
1229 TemplateParameterList::shouldIncludeTypeForArgument(Policy, Params,
1251 if (Policy.CleanUglifiedParameters && TTP->getIdentifier())
1260 Concept->getConstraintExpr()->printPretty(Out, nullptr, Policy, Indentation,
1350 Out << Ctx.getUnqualifiedObjCPointerType(T).getAsString(Policy);
1380 Out << " : " << Param->getUnderlyingType().getAsString(Policy);
1419 if (OMD->getBody() && !Policy.TerseOutput) {
1421 OMD->getBody()->printPretty(Out, nullptr, Policy, Indentation, "\n",
1424 else if (Policy.PolishForDeclaration)
1441 Indentation += Policy.Indentation;
1444 getAsString(Policy) << ' ' << *I << ";\n";
1446 Indentation -= Policy.Indentation;
1486 Out << " : " << QualType(OID->getSuperClassType(), 0).getAsString(Policy);
1500 Indentation += Policy.Indentation;
1504 .getAsString(Policy) << ' ' << *I << ";\n";
1506 Indentation -= Policy.Indentation;
1565 Indentation += Policy.Indentation;
1568 getAsString(Policy) << ' ' << *I << ";\n";
1569 Indentation -= Policy.Indentation;
1692 getAsString(Policy);
1697 if (Policy.PolishForDeclaration)
1716 D->getQualifier()->print(Out, Policy);
1738 D->getQualifier()->print(Out, Policy);
1745 D->getQualifier()->print(Out, Policy);
1795 OMPClausePrinter Printer(Out, Policy);
1806 OMPClausePrinter Printer(Out, Policy);
1822 D->printName(Out, Policy);
1825 D->getType().print(Out, Policy);
1827 D->getCombiner()->printPretty(Out, nullptr, Policy, 0, "\n", &Context);
1841 Init->printPretty(Out, nullptr, Policy, 0, "\n", &Context);
1852 D->printName(Out, Policy);
1854 D->getType().print(Out, Policy);
1859 OMPClausePrinter Printer(Out, Policy);
1869 D->getInit()->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
1874 TC->print(Out, Policy);
1886 if (Policy.CleanUglifiedParameters && TTP->getIdentifier())
1894 TTP->getDefaultArgument().getArgument().print(Policy, Out,
1904 Policy.CleanUglifiedParameters ? II->deuglifiedName() : II->getName();
1909 NTTP->getDefaultArgument().getArgument().print(Policy, Out,