Lines Matching refs:Policy
33 PrintingPolicy &Policy;
37 explicit IncludeStrongLifetimeRAII(PrintingPolicy &Policy)
38 : Policy(Policy), Old(Policy.SuppressStrongLifetime) {
39 Policy.SuppressStrongLifetime = false;
43 Policy.SuppressStrongLifetime = Old;
48 PrintingPolicy &Policy;
52 explicit ParamPolicyRAII(PrintingPolicy &Policy)
53 : Policy(Policy), Old(Policy.SuppressSpecifiers) {
54 Policy.SuppressSpecifiers = false;
58 Policy.SuppressSpecifiers = Old;
63 PrintingPolicy &Policy;
68 explicit ElaboratedTypePolicyRAII(PrintingPolicy &Policy) : Policy(Policy) {
69 SuppressTagKeyword = Policy.SuppressTagKeyword;
70 SuppressScope = Policy.SuppressScope;
71 Policy.SuppressTagKeyword = true;
72 Policy.SuppressScope = true;
76 Policy.SuppressTagKeyword = SuppressTagKeyword;
77 Policy.SuppressScope = SuppressScope;
82 PrintingPolicy Policy;
87 explicit TypePrinter(const PrintingPolicy &Policy)
88 : Policy(Policy), HasEmptyPlaceHolder(false), InsideCCAttribute(false) { }
244 if (Policy.SuppressSpecifiers && T->isSpecifierType())
257 IncludeStrongLifetimeRAII Strong(Policy);
258 Quals.print(OS, Policy, /*appendSpaceIfNonEmpty=*/true);
260 Quals.print(OS, Policy, /*appendSpaceIfNonEmpty=*/true);
266 hasAfterQuals = !Quals.isEmptyWhenPrinted(Policy);
281 IncludeStrongLifetimeRAII Strong(Policy);
282 Quals.print(OS, Policy, /*appendSpaceIfNonEmpty=*/!PrevPHIsEmpty.get());
284 Quals.print(OS, Policy, /*appendSpaceIfNonEmpty=*/!PrevPHIsEmpty.get());
307 OS << T->getName(Policy);
321 IncludeStrongLifetimeRAII Strong(Policy);
331 IncludeStrongLifetimeRAII Strong(Policy);
354 IncludeStrongLifetimeRAII Strong(Policy);
365 IncludeStrongLifetimeRAII Strong(Policy);
376 IncludeStrongLifetimeRAII Strong(Policy);
387 IncludeStrongLifetimeRAII Strong(Policy);
398 IncludeStrongLifetimeRAII Strong(Policy);
406 PrintingPolicy InnerPolicy(Policy);
414 IncludeStrongLifetimeRAII Strong(Policy);
425 IncludeStrongLifetimeRAII Strong(Policy);
437 IncludeStrongLifetimeRAII Strong(Policy);
449 IncludeStrongLifetimeRAII Strong(Policy);
467 T->getSizeExpr()->printPretty(OS, 0, Policy);
484 IncludeStrongLifetimeRAII Strong(Policy);
493 T->getSizeExpr()->printPretty(OS, 0, Policy);
508 T->getSizeExpr()->printPretty(OS, 0, Policy);
566 const PrintingPolicy &Policy)
578 OS << getExceptionType(I).stream(Policy);
585 getNoexceptExpr()->printPretty(OS, 0, Policy);
615 ParamPolicyRAII ParamPolicy(Policy);
626 } else if (T->getNumArgs() == 0 && !Policy.LangOpts.CPlusPlus) {
691 T->printExceptionSpecification(OS, Policy);
742 T->getUnderlyingExpr()->printPretty(OS, 0, Policy);
758 T->getUnderlyingExpr()->printPretty(OS, 0, Policy);
766 IncludeStrongLifetimeRAII Strong(Policy);
781 IncludeStrongLifetimeRAII Strong(Policy);
807 IncludeStrongLifetimeRAII Strong(Policy);
823 if (Policy.SuppressUnwrittenScope &&
832 IncludeStrongLifetimeRAII Strong(Policy);
838 Policy);
851 if (Policy.SuppressTag)
857 // = Policy.LangOpts.CPlusPlus || Policy.SuppressTagKeyword;
861 if (!(Policy.LangOpts.CPlusPlus || Policy.SuppressTagKeyword ||
871 if (!Policy.SuppressScope)
890 if (Policy.AnonymousTagLocations) {
925 IncludeStrongLifetimeRAII Strong(Policy);
928 Policy);
958 IncludeStrongLifetimeRAII Strong(Policy);
964 IncludeStrongLifetimeRAII Strong(Policy);
971 IncludeStrongLifetimeRAII Strong(Policy);
977 IncludeStrongLifetimeRAII Strong(Policy);
984 IncludeStrongLifetimeRAII Strong(Policy);
985 T->getTemplateName().print(OS, Policy);
990 Policy);
1011 Qualifier->print(OS, Policy);
1013 ElaboratedTypePolicyRAII PolicyRAII(Policy);
1018 ElaboratedTypePolicyRAII PolicyRAII(Policy);
1043 T->getQualifier()->print(OS, Policy);
1053 IncludeStrongLifetimeRAII Strong(Policy);
1060 T->getQualifier()->print(OS, Policy);
1065 Policy);
1249 T->getPointeeType().getLocalQualifiers().print(OS, Policy,
1285 const PrintingPolicy &Policy) {
1289 Policy);
1297 const PrintingPolicy &Policy,
1313 Policy, true);
1317 Args[Arg].print(Policy, ArgOS);
1346 const PrintingPolicy &Policy) {
1361 Policy, true);
1363 Args[Arg].getArgument().print(Policy, ArgOS);
1410 std::string Qualifiers::getAsString(const PrintingPolicy &Policy) const {
1413 print(StrOS, Policy);
1417 bool Qualifiers::isEmptyWhenPrinted(const PrintingPolicy &Policy) const {
1428 if (!(lifetime == Qualifiers::OCL_Strong && Policy.SuppressStrongLifetime))
1437 void Qualifiers::print(raw_ostream &OS, const PrintingPolicy& Policy,
1476 if (!(lifetime == Qualifiers::OCL_Strong && Policy.SuppressStrongLifetime)){
1486 if (!Policy.SuppressStrongLifetime)
1499 std::string QualType::getAsString(const PrintingPolicy &Policy) const {
1501 getAsStringInternal(S, Policy);
1513 raw_ostream &OS, const PrintingPolicy &policy,
1518 TypePrinter(policy).print(ty, qs, OS, PH);
1523 const PrintingPolicy &policy) {
1526 TypePrinter(policy).print(ty, qs, StrOS, buffer);