Lines Matching refs:Out

29     raw_ostream &Out;
50 DeclPrinter(raw_ostream &Out, const PrintingPolicy &Policy,
52 : Out(Out), Policy(Policy), Indentation(Indentation),
104 void Decl::print(raw_ostream &Out, unsigned Indentation,
106 print(Out, getASTContext().getPrintingPolicy(), Indentation, PrintInstantiation);
109 void Decl::print(raw_ostream &Out, const PrintingPolicy &Policy,
111 DeclPrinter Printer(Out, Policy, Indentation, PrintInstantiation);
148 raw_ostream &Out, const PrintingPolicy &Policy,
151 (*Begin)->print(Out, Policy, Indentation);
162 TD->print(Out, Policy, Indentation);
163 Out << " ";
173 if (!isFirst) Out << ", ";
177 (*Begin)->print(Out, SubPolicy, Indentation);
194 Out << " ";
195 return Out;
211 A->printPretty(Out, Policy);
229 A->printPretty(Out, Policy);
247 T.print(Out, Policy, (Pack ? "..." : "") + DeclName);
252 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation);
253 Out << ";\n";
261 case AS_public: Out << "public"; break;
262 case AS_protected: Out << "protected"; break;
263 case AS_private: Out << "private"; break;
326 Out << ":\n";
359 Out << Terminator;
360 Out << "\n";
376 Out << "typedef ";
379 Out << "__module_private__ ";
381 D->getTypeSourceInfo()->getType().print(Out, Policy, D->getName());
386 Out << "using " << *D;
388 Out << " = " << D->getTypeSourceInfo()->getType().getAsString(Policy);
393 Out << "__module_private__ ";
394 Out << "enum ";
397 Out << "class ";
399 Out << "struct ";
401 Out << *D;
404 Out << " : " << D->getIntegerType().stream(Policy);
407 Out << " {\n";
416 Out << "__module_private__ ";
417 Out << D->getKindName();
422 Out << ' ' << *D;
425 Out << " {\n";
432 Out << *D;
434 Out << " = ";
435 Init->printPretty(Out, nullptr, Policy, Indentation);
449 case SC_Extern: Out << "extern "; break;
450 case SC_Static: Out << "static "; break;
451 case SC_PrivateExtern: Out << "__private_extern__ "; break;
456 if (D->isInlineSpecified()) Out << "inline ";
457 if (D->isVirtualAsWritten()) Out << "virtual ";
458 if (D->isModulePrivate()) Out << "__module_private__ ";
459 if (D->isConstexpr() && !D->isExplicitlyDefaulted()) Out << "constexpr ";
462 Out << "explicit ";
556 Out << Proto;
560 Out << ", ";
564 Out << *FD;
566 Out << QualType(BMInitializer->getBaseClass(), 0).getAsString(Policy);
569 Out << "(";
593 SimpleInit->printPretty(Out, nullptr, Policy, Indentation);
601 Out << ", ";
602 Args[I]->printPretty(Out, nullptr, Policy, Indentation);
606 Out << ")";
608 Out << "...";
612 Out << "auto " << Proto << " -> ";
615 AFT->getReturnType().print(Out, Policy, Proto);
618 Out << Proto;
620 Ty.print(Out, Policy, Proto);
626 Out << " = 0";
628 Out << " = delete";
630 Out << " = default";
635 Out << '\n';
636 DeclPrinter ParamPrinter(Out, SubPolicy, Indentation);
641 Out << ";\n";
645 Out << ' ';
648 D->getBody()->printPretty(Out, nullptr, SubPolicy, Indentation);
649 Out << '\n';
658 Out << "friend ";
659 Out << " " << TSI->getType().getAsString(Policy);
663 Out << "friend ";
668 Out << "friend ";
673 Out << "friend ";
681 Out << "mutable ";
683 Out << "__module_private__ ";
685 Out << D->getASTContext().getUnqualifiedObjCPointerType(D->getType()).
689 Out << " : ";
690 D->getBitWidth()->printPretty(Out, nullptr, Policy, Indentation);
696 Out << " ";
698 Out << " = ";
699 Init->printPretty(Out, nullptr, Policy, Indentation);
705 Out << *D << ":";
713 Out << VarDecl::getStorageClassSpecifierString(SC) << " ";
719 Out << "__thread ";
722 Out << "_Thread_local ";
725 Out << "thread_local ";
730 Out << "__module_private__ ";
750 Out << "(";
752 Out << " = ";
754 Init->printPretty(Out, nullptr, Policy, Indentation);
756 Out << ")";
767 Out << "__asm (";
768 D->getAsmString()->printPretty(Out, nullptr, Policy, Indentation);
769 Out << ")";
773 Out << "@import " << D->getImportedModule()->getFullModuleName()
778 Out << "static_assert(";
779 D->getAssertExpr()->printPretty(Out, nullptr, Policy, Indentation);
781 Out << ", ";
782 SL->printPretty(Out, nullptr, Policy, Indentation);
784 Out << ")";
792 Out << "inline ";
793 Out << "namespace " << *D << " {\n";
799 Out << "using namespace ";
801 D->getQualifier()->print(Out, Policy);
802 Out << *D->getNominatedNamespaceAsWritten();
806 Out << "namespace " << *D << " = ";
808 D->getQualifier()->print(Out, Policy);
809 Out << *D->getAliasedNamespace();
819 Out << "__module_private__ ";
820 Out << D->getKindName();
825 Out << ' ' << *D;
830 Out << " : ";
834 Out << ", ";
837 Out << "virtual ";
842 Out << " ";
844 Out << Base->getType().getAsString(Policy);
847 Out << "...";
853 Out << " {\n";
869 Out << "extern \"" << l << "\" ";
871 Out << "{\n";
883 Out << "template <";
887 Out << ", ";
894 Out << "typename ";
896 Out << "class ";
899 Out << "...";
901 Out << *TTP;
904 Out << " = ";
905 Args->get(i).print(Policy, Out);
907 Out << " = ";
908 Out << TTP->getDefaultArgument().getAsString(Policy);
918 Out << " = ";
919 Args->get(i).print(Policy, Out);
921 Out << " = ";
922 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy,
932 Out << "> ";
940 Out << "class ";
942 Out << "...";
943 Out << D->getName();
969 Out << '\n';
983 Out << '(';
985 Out << "in ";
987 Out << "inout ";
989 Out << "out ";
991 Out << "bycopy ";
993 Out << "byref ";
995 Out << "oneway ";
998 Out << getNullabilitySpelling(*nullability, true) << ' ';
1001 Out << Ctx.getUnqualifiedObjCPointerType(T).getAsString(Policy);
1002 Out << ')';
1006 Out << "<";
1012 Out << ", ";
1020 Out << "__covariant ";
1024 Out << "__contravariant ";
1028 Out << Param->getDeclName().getAsString();
1031 Out << " : " << Param->getUnderlyingType().getAsString(Policy);
1034 Out << ">";
1039 Out << "- ";
1041 Out << "+ ";
1052 Out << " " << name.substr(lastPos, pos - lastPos) << ':';
1056 Out << *PI;
1061 Out << " " << name;
1064 Out << ", ...";
1069 Out << ' ';
1070 OMD->getBody()->printPretty(Out, nullptr, Policy);
1073 Out << ';';
1082 Out << "@implementation " << I << " : " << *SID;
1084 Out << "@implementation " << I;
1087 Out << "{\n";
1095 Out << "}\n";
1098 Out << "\n";
1103 Out << "\n";
1104 Out << "@end";
1112 Out << "@class " << I;
1118 Out << ";";
1122 Out << "@interface " << I;
1129 Out << " : " << QualType(OID->getSuperClassType(), 0).getAsString(Policy);
1136 Out << (I == Protocols.begin() ? '<' : ',') << **I;
1137 Out << "> ";
1141 Out << "{\n";
1150 Out << "}\n";
1153 Out << "\n";
1159 Out << "\n";
1160 Out << "@end";
1166 Out << "@protocol " << *PID << ";\n";
1172 Out << "@protocol " << *PID;
1175 Out << (I == Protocols.begin() ? '<' : ',') << **I;
1176 Out << ">\n";
1178 Out << "@protocol " << *PID << '\n';
1180 Out << "@end";
1184 Out << "@implementation " << *PID->getClassInterface() << '(' << *PID <<")\n";
1187 Out << "@end";
1192 Out << "@interface " << *PID->getClassInterface();
1196 Out << "(" << *PID << ")\n";
1198 Out << "{\n";
1204 Out << "}\n";
1208 Out << "@end";
1214 Out << "@compatibility_alias " << *AID
1222 Out << "@required\n";
1224 Out << "@optional\n";
1228 Out << "@property";
1231 Out << " (";
1234 Out << (first ? ' ' : ',') << "readonly";
1239 Out << (first ? ' ' : ',') << "getter = ";
1240 PDecl->getGetterName().print(Out);
1244 Out << (first ? ' ' : ',') << "setter = ";
1245 PDecl->getSetterName().print(Out);
1250 Out << (first ? ' ' : ',') << "assign";
1256 Out << (first ? ' ' : ',') << "readwrite";
1261 Out << (first ? ' ' : ',') << "retain";
1266 Out << (first ? ' ' : ',') << "strong";
1271 Out << (first ? ' ' : ',') << "copy";
1277 Out << (first ? ' ' : ',') << "nonatomic";
1282 Out << (first ? ' ' : ',') << "atomic";
1292 Out << (first ? ' ' : ',') << "null_resettable";
1294 Out << (first ? ' ' : ',')
1302 Out << " )";
1304 Out << ' ' << PDecl->getASTContext().getUnqualifiedObjCPointerType(T).
1307 Out << ';';
1312 Out << "@synthesize ";
1314 Out << "@dynamic ";
1315 Out << *PID->getPropertyDecl();
1317 Out << '=' << *PID->getPropertyIvarDecl();
1322 Out << "using ";
1324 Out << "typename ";
1325 D->getQualifier()->print(Out, Policy);
1326 Out << *D;
1331 Out << "using typename ";
1332 D->getQualifier()->print(Out, Policy);
1333 Out << D->getDeclName();
1338 Out << "using ";
1339 D->getQualifier()->print(Out, Policy);
1340 Out << D->getDeclName();
1348 Out << "#pragma omp threadprivate";
1353 Out << (I == D->varlist_begin() ? '(' : ',');
1355 ND->printQualifiedName(Out);
1357 Out << ")";