Lines Matching refs:Policy
30 PrintingPolicy Policy;
41 DeclPrinter(raw_ostream &Out, const PrintingPolicy &Policy,
43 : Out(Out), Policy(Policy), Indentation(Indentation),
98 void Decl::print(raw_ostream &Out, const PrintingPolicy &Policy,
100 DeclPrinter Printer(Out, Policy, Indentation, PrintInstantiation);
137 raw_ostream &Out, const PrintingPolicy &Policy,
140 (*Begin)->print(Out, Policy, Indentation);
149 PrintingPolicy SubPolicy(Policy);
151 TD->print(Out, Policy, Indentation);
188 if (Policy.PolishForDeclaration)
195 A->printPretty(Out, Policy);
202 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation);
222 if (Policy.TerseOutput)
226 Indentation += Policy.Indentation;
282 Indentation -= Policy.Indentation;
286 Indentation += Policy.Indentation;
326 Indentation -= Policy.Indentation;
334 if (!Policy.SuppressSpecifiers) {
340 D->getTypeSourceInfo()->getType().print(Out, Policy, D->getName());
347 Out << " = " << D->getTypeSourceInfo()->getType().getAsString(Policy);
351 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
363 Out << " : " << D->getIntegerType().stream(Policy);
374 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
391 Init->printPretty(Out, 0, Policy, Indentation);
397 if (!Policy.SuppressSpecifiers) {
414 PrintingPolicy SubPolicy(Policy);
508 Policy);
535 SimpleInit->printPretty(Out, 0, Policy, Indentation);
543 Args[I]->printPretty(Out, 0, Policy, Indentation);
556 AFT->getResultType().print(Out, Policy, Proto);
559 Ty.print(Out, Policy, Proto);
570 else if (D->doesThisDeclarationHaveABody() && !Policy.TerseOutput) {
576 Indentation += Policy.Indentation;
582 Indentation -= Policy.Indentation;
597 Out << " " << TSI->getType().getAsString(Policy);
617 if (!Policy.SuppressSpecifiers && D->isMutable())
619 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
623 stream(Policy, D->getName());
627 D->getBitWidth()->printPretty(Out, 0, Policy, Indentation);
631 if (!Policy.SuppressInitializers && Init) {
636 Init->printPretty(Out, 0, Policy, Indentation);
647 if (!Policy.SuppressSpecifiers) {
673 T.print(Out, Policy, D->getName());
675 if (!Policy.SuppressInitializers && Init) {
691 Init->printPretty(Out, 0, Policy, Indentation);
705 D->getAsmString()->printPretty(Out, 0, Policy, Indentation);
716 D->getAssertExpr()->printPretty(Out, 0, Policy, Indentation);
718 D->getMessage()->printPretty(Out, 0, Policy, Indentation);
736 D->getQualifier()->print(Out, Policy);
743 D->getQualifier()->print(Out, Policy);
752 if (!Policy.SuppressSpecifiers && D->isModulePrivate())
773 Out << " " << Base->getType().getAsString(Policy);
834 Args->get(i).print(Policy, Out);
837 Out << TTP->getDefaultArgument().getAsString(Policy);
841 Out << NTTP->getType().getAsString(Policy);
853 Args->get(i).print(Policy, Out);
856 NTTP->getDefaultArgument()->printPretty(Out, 0, Policy, Indentation);
920 getAsString(Policy) << ")";
930 getAsString(Policy) << ')' << **PI;
940 if (OMD->getBody() && !Policy.TerseOutput) {
942 OMD->getBody()->printPretty(Out, 0, Policy);
945 else if (Policy.PolishForDeclaration)
960 Indentation += Policy.Indentation;
964 getAsString(Policy) << ' ' << **I << ";\n";
966 Indentation -= Policy.Indentation;
999 Indentation += Policy.Indentation;
1003 getAsString(Policy) << ' ' << **I << ";\n";
1005 Indentation -= Policy.Indentation;
1051 Indentation += Policy.Indentation;
1055 getAsString(Policy) << ' ' << **I << ";\n";
1057 Indentation -= Policy.Indentation;
1142 getAsString(Policy) << ' ' << *PDecl;
1143 if (Policy.PolishForDeclaration)
1162 D->getQualifier()->print(Out, Policy);
1169 D->getQualifier()->print(Out, Policy);
1176 D->getQualifier()->print(Out, Policy);