Lines Matching refs:Out

29     raw_ostream &Out;
53 DeclPrinter(raw_ostream &Out, const PrintingPolicy &Policy,
56 : Out(Out), Policy(Policy), Context(Context), Indentation(Indentation),
125 void Decl::print(raw_ostream &Out, unsigned Indentation,
127 print(Out, getASTContext().getPrintingPolicy(), Indentation, PrintInstantiation);
130 void Decl::print(raw_ostream &Out, const PrintingPolicy &Policy,
132 DeclPrinter Printer(Out, Policy, getASTContext(), Indentation,
137 void TemplateParameterList::print(raw_ostream &Out, const ASTContext &Context,
139 print(Out, Context, Context.getPrintingPolicy(), OmitTemplateKW);
142 void TemplateParameterList::print(raw_ostream &Out, const ASTContext &Context,
145 DeclPrinter Printer(Out, Policy, Context);
185 raw_ostream &Out, const PrintingPolicy &Policy,
188 (*Begin)->print(Out, Policy, Indentation);
207 if (!isFirst) Out << ", ";
212 (*Begin)->print(Out, SubPolicy, Indentation);
229 Out << " ";
230 return Out;
248 A->printPretty(Out, Policy);
266 A->printPretty(Out, Policy);
284 T.print(Out, Policy, (Pack ? "..." : "") + DeclName, Indentation);
289 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation);
290 Out << ";\n";
299 Out << AccessSpelling;
311 Out << Proto;
315 Out << ", ";
319 Out << *FD;
321 Out << QualType(BMInitializer->getBaseClass(), 0).getAsString(Policy);
324 Out << "(";
348 SimpleInit->printPretty(Out, nullptr, Policy, Indentation, "\n",
357 Out << ", ";
358 Args[I]->printPretty(Out, nullptr, Policy, Indentation, "\n",
363 Out << ")";
365 Out << "...";
437 Out << ":\n";
479 Out << Terminator;
487 Out << "\n";
492 Out << "#pragma omp end declare target\n";
508 Out << "typedef ";
511 Out << "__module_private__ ";
514 Ty.print(Out, Policy, D->getName(), Indentation);
519 Out << "using " << *D;
521 Out << " = " << D->getTypeSourceInfo()->getType().getAsString(Policy);
526 Out << "__module_private__ ";
527 Out << "enum";
530 Out << " class";
532 Out << " struct";
538 Out << ' ' << D->getDeclName();
541 Out << " : " << D->getIntegerType().stream(Policy);
544 Out << " {\n";
552 Out << "__module_private__ ";
553 Out << D->getKindName();
558 Out << ' ' << *D;
561 Out << " {\n";
568 Out << *D;
571 Out << " = ";
572 Init->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
576 static void printExplicitSpecifier(ExplicitSpecifier ES, llvm::raw_ostream &Out,
589 Out << EOut.str();
598 Out << "template<> ";
611 case SC_Extern: Out << "extern "; break;
612 case SC_Static: Out << "static "; break;
613 case SC_PrivateExtern: Out << "__private_extern__ "; break;
618 if (D->isInlineSpecified()) Out << "inline ";
619 if (D->isVirtualAsWritten()) Out << "virtual ";
620 if (D->isModulePrivate()) Out << "__module_private__ ";
622 Out << "constexpr ";
623 if (D->isConsteval()) Out << "consteval ";
626 printExplicitSpecifier(ExplicitSpec, Out, Policy, Indentation, Context);
748 Out << "auto ";
749 Out << Proto << " -> ";
752 AFT->getReturnType().print(Out, Policy, Proto);
755 Out << Proto;
758 Out << " requires ";
759 TrailingRequiresClause->printPretty(Out, nullptr, SubPolicy, Indentation,
763 Ty.print(Out, Policy, Proto);
769 Out << " = 0";
771 Out << " = delete";
773 Out << " = default";
779 Out << '\n';
780 DeclPrinter ParamPrinter(Out, SubPolicy, Context, Indentation);
785 Out << ";\n";
789 Out << ' ';
792 D->getBody()->printPretty(Out, nullptr, SubPolicy, Indentation, "\n",
796 Out << " {}";
806 Out << "friend ";
807 Out << " " << TSI->getType().getAsString(Policy);
811 Out << "friend ";
816 Out << "friend ";
821 Out << "friend ";
829 Out << "mutable ";
831 Out << "__module_private__ ";
833 Out << D->getASTContext().getUnqualifiedObjCPointerType(D->getType()).
837 Out << " : ";
838 D->getBitWidth()->printPretty(Out, nullptr, Policy, Indentation, "\n",
845 Out << " ";
847 Out << " = ";
848 Init->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
854 Out << *D << ":";
867 Out << VarDecl::getStorageClassSpecifierString(SC) << " ";
873 Out << "__thread ";
876 Out << "_Thread_local ";
879 Out << "thread_local ";
884 Out << "__module_private__ ";
887 Out << "constexpr ";
906 Out << "(";
908 Out << " = ";
913 Init->printPretty(Out, nullptr, SubPolicy, Indentation, "\n", &Context);
915 Out << ")";
926 Out << "__asm (";
927 D->getAsmString()->printPretty(Out, nullptr, Policy, Indentation, "\n",
929 Out << ")";
933 Out << "@import " << D->getImportedModule()->getFullModuleName()
938 Out << "static_assert(";
939 D->getAssertExpr()->printPretty(Out, nullptr, Policy, Indentation, "\n",
942 Out << ", ";
943 SL->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
945 Out << ")";
953 Out << "inline ";
955 Out << "namespace ";
957 Out << D->getDeclName() << ' ';
958 Out << "{\n";
965 Out << "using namespace ";
967 D->getQualifier()->print(Out, Policy);
968 Out << *D->getNominatedNamespaceAsWritten();
972 Out << "namespace " << *D << " = ";
974 D->getQualifier()->print(Out, Policy);
975 Out << *D->getAliasedNamespace();
985 Out << "__module_private__ ";
986 Out << D->getKindName();
991 Out << ' ' << *D;
1009 Out << " : ";
1013 Out << ", ";
1016 Out << "virtual ";
1021 Out << " ";
1023 Out << Base->getType().getAsString(Policy);
1026 Out << "...";
1033 Out << " {}";
1035 Out << " {\n";
1052 Out << "extern \"" << l << "\" ";
1054 Out << "{\n";
1066 Out << "template ";
1067 Out << '<';
1075 Out << ", ";
1089 Out << '>';
1091 Out << ' ';
1097 Out << "<";
1100 Out << ", ";
1102 Args[I].print(Policy, Out, /*IncludeType*/ true);
1105 Policy, Out,
1108 Out << ">";
1114 Out << "<";
1117 Out << ", ";
1119 Args[I].getArgument().print(Policy, Out, /*IncludeType*/ true);
1122 Policy, Out,
1125 Out << ">";
1133 Out << "class";
1136 Out << " ...";
1138 Out << ' ';
1141 Out << TTP->getDeclName();
1145 Out << "concept " << Concept->getName() << " = " ;
1146 Concept->getConstraintExpr()->printPretty(Out, nullptr, Policy, Indentation,
1148 Out << ";";
1164 Out << "#pragma omp end declare target\n";
1177 Out << ";\n";
1192 Out << ";";
1193 Out << "\n";
1201 Out << "template<> ";
1218 Out << '(';
1220 Out << "in ";
1222 Out << "inout ";
1224 Out << "out ";
1226 Out << "bycopy ";
1228 Out << "byref ";
1230 Out << "oneway ";
1233 Out << getNullabilitySpelling(*nullability, true) << ' ';
1236 Out << Ctx.getUnqualifiedObjCPointerType(T).getAsString(Policy);
1237 Out << ')';
1241 Out << "<";
1247 Out << ", ";
1255 Out << "__covariant ";
1259 Out << "__contravariant ";
1263 Out << Param->getDeclName();
1266 Out << " : " << Param->getUnderlyingType().getAsString(Policy);
1269 Out << ">";
1274 Out << "- ";
1276 Out << "+ ";
1288 Out << " ";
1289 Out << name.substr(lastPos, pos - lastPos) << ':';
1293 Out << *PI;
1298 Out << name;
1301 Out << ", ...";
1306 Out << ' ';
1307 OMD->getBody()->printPretty(Out, nullptr, Policy, Indentation, "\n",
1311 Out << ';';
1320 Out << "@implementation " << I << " : " << *SID;
1322 Out << "@implementation " << I;
1325 Out << "{\n";
1333 Out << "}\n";
1336 Out << "\n";
1341 Out << "\n";
1342 Out << "@end";
1350 Out << "@class " << I;
1356 Out << ";";
1360 Out << "@interface " << I;
1367 Out << " : " << QualType(OID->getSuperClassType(), 0).getAsString(Policy);
1374 Out << (I == Protocols.begin() ? '<' : ',') << **I;
1375 Out << "> ";
1379 Out << "{\n";
1388 Out << "}\n";
1391 Out << "\n";
1397 Out << "\n";
1398 Out << "@end";
1404 Out << "@protocol " << *PID << ";\n";
1410 Out << "@protocol " << *PID;
1413 Out << (I == Protocols.begin() ? '<' : ',') << **I;
1414 Out << ">\n";
1416 Out << "@protocol " << *PID << '\n';
1418 Out << "@end";
1422 Out << "@implementation ";
1424 Out << *CID;
1426 Out << "<<error-type>>";
1427 Out << '(' << *PID << ")\n";
1430 Out << "@end";
1435 Out << "@interface ";
1437 Out << *CID;
1439 Out << "<<error-type>>";
1443 Out << "(" << *PID << ")\n";
1445 Out << "{\n";
1451 Out << "}\n";
1455 Out << "@end";
1461 Out << "@compatibility_alias " << *AID
1476 Out << "@required\n";
1478 Out << "@optional\n";
1482 Out << "@property";
1485 Out << "(";
1487 Out << (first ? "" : ", ") << "class";
1492 Out << (first ? "" : ", ") << "direct";
1498 Out << (first ? "" : ", ") << "nonatomic";
1502 Out << (first ? "" : ", ") << "atomic";
1507 Out << (first ? "" : ", ") << "assign";
1511 Out << (first ? "" : ", ") << "retain";
1516 Out << (first ? "" : ", ") << "strong";
1520 Out << (first ? "" : ", ") << "copy";
1524 Out << (first ? "" : ", ") << "weak";
1529 Out << (first ? "" : ", ") << "unsafe_unretained";
1535 Out << (first ? "" : ", ") << "readwrite";
1539 Out << (first ? "" : ", ") << "readonly";
1544 Out << (first ? "" : ", ") << "getter = ";
1545 PDecl->getGetterName().print(Out);
1549 Out << (first ? "" : ", ") << "setter = ";
1550 PDecl->getSetterName().print(Out);
1560 Out << (first ? "" : ", ") << "null_resettable";
1562 Out << (first ? "" : ", ")
1570 Out << ")";
1574 Out << ' ' << TypeStr;
1576 Out << ' ';
1577 Out << *PDecl;
1579 Out << ';';
1584 Out << "@synthesize ";
1586 Out << "@dynamic ";
1587 Out << *PID->getPropertyDecl();
1589 Out << '=' << *PID->getPropertyIvarDecl();
1594 Out << "using ";
1596 Out << "typename ";
1597 D->getQualifier()->print(Out, Policy);
1605 Out << *ConstructorShadow->getNominatedBaseClass();
1609 Out << *D;
1614 Out << "using typename ";
1615 D->getQualifier()->print(Out, Policy);
1616 Out << D->getDeclName();
1621 Out << "using ";
1622 D->getQualifier()->print(Out, Policy);
1623 Out << D->getDeclName();
1631 Out << "#pragma omp threadprivate";
1636 Out << (I == D->varlist_begin() ? '(' : ',');
1638 ND->printQualifiedName(Out);
1640 Out << ")";
1645 Out << "#pragma omp allocate";
1650 Out << (I == D->varlist_begin() ? '(' : ',');
1652 ND->printQualifiedName(Out);
1654 Out << ")";
1657 Out << " ";
1658 OMPClausePrinter Printer(Out, Policy);
1665 Out << "#pragma omp requires ";
1667 OMPClausePrinter Printer(Out, Policy);
1675 Out << "#pragma omp declare reduction (";
1680 Out << OpName;
1683 D->printName(Out);
1685 Out << " : ";
1686 D->getType().print(Out, Policy);
1687 Out << " : ";
1688 D->getCombiner()->printPretty(Out, nullptr, Policy, 0, "\n", &Context);
1689 Out << ")";
1691 Out << " initializer(";
1694 Out << "omp_priv(";
1697 Out << "omp_priv = ";
1702 Init->printPretty(Out, nullptr, Policy, 0, "\n", &Context);
1704 Out << ")";
1705 Out << ")";
1712 Out << "#pragma omp declare mapper (";
1713 D->printName(Out);
1714 Out << " : ";
1715 D->getType().print(Out, Policy);
1716 Out << " ";
1717 Out << D->getVarName();
1718 Out << ")";
1720 OMPClausePrinter Printer(Out, Policy);
1722 Out << " ";
1730 D->getInit()->printPretty(Out, nullptr, Policy, Indentation, "\n", &Context);
1735 TC->print(Out, Policy);
1737 Out << "typename";
1739 Out << "class";
1742 Out << " ...";
1744 Out << ' ';
1747 Out << TTP->getDeclName();
1750 Out << " = ";
1751 Out << TTP->getDefaultArgument().getAsString(Policy);
1763 Out << " = ";
1764 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy, Indentation,