Lines Matching defs:Out

29     raw_ostream &Out;
50 DeclPrinter(raw_ostream &Out, const PrintingPolicy &Policy,
52 : Out(Out), Policy(Policy), Indentation(Indentation),
106 void Decl::print(raw_ostream &Out, unsigned Indentation,
108 print(Out, getASTContext().getPrintingPolicy(), Indentation, PrintInstantiation);
111 void Decl::print(raw_ostream &Out, const PrintingPolicy &Policy,
113 DeclPrinter Printer(Out, Policy, Indentation, PrintInstantiation);
152 raw_ostream &Out, const PrintingPolicy &Policy,
155 (*Begin)->print(Out, Policy, Indentation);
174 if (!isFirst) Out << ", ";
179 (*Begin)->print(Out, SubPolicy, Indentation);
196 Out << " ";
197 return Out;
213 A->printPretty(Out, Policy);
231 A->printPretty(Out, Policy);
249 T.print(Out, Policy, (Pack ? "..." : "") + DeclName, Indentation);
254 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation);
255 Out << ";\n";
263 case AS_public: Out << "public"; break;
264 case AS_protected: Out << "protected"; break;
265 case AS_private: Out << "private"; break;
328 Out << ":\n";
361 Out << Terminator;
362 Out << "\n";
367 Out << "#pragma omp end declare target\n";
383 Out << "typedef ";
386 Out << "__module_private__ ";
389 Ty.print(Out, Policy, D->getName(), Indentation);
394 Out << "using " << *D;
396 Out << " = " << D->getTypeSourceInfo()->getType().getAsString(Policy);
401 Out << "__module_private__ ";
402 Out << "enum ";
405 Out << "class ";
407 Out << "struct ";
409 Out << *D;
412 Out << " : " << D->getIntegerType().stream(Policy);
415 Out << " {\n";
424 Out << "__module_private__ ";
425 Out << D->getKindName();
430 Out << ' ' << *D;
433 Out << " {\n";
440 Out << *D;
442 Out << " = ";
443 Init->printPretty(Out, nullptr, Policy, Indentation);
457 case SC_Extern: Out << "extern "; break;
458 case SC_Static: Out << "static "; break;
459 case SC_PrivateExtern: Out << "__private_extern__ "; break;
464 if (D->isInlineSpecified()) Out << "inline ";
465 if (D->isVirtualAsWritten()) Out << "virtual ";
466 if (D->isModulePrivate()) Out << "__module_private__ ";
467 if (D->isConstexpr() && !D->isExplicitlyDefaulted()) Out << "constexpr ";
470 Out << "explicit ";
564 Out << Proto;
568 Out << ", ";
572 Out << *FD;
574 Out << QualType(BMInitializer->getBaseClass(), 0).getAsString(Policy);
577 Out << "(";
601 SimpleInit->printPretty(Out, nullptr, Policy, Indentation);
609 Out << ", ";
610 Args[I]->printPretty(Out, nullptr, Policy, Indentation);
614 Out << ")";
616 Out << "...";
620 Out << "auto " << Proto << " -> ";
623 AFT->getReturnType().print(Out, Policy, Proto);
626 Out << Proto;
628 Ty.print(Out, Policy, Proto);
634 Out << " = 0";
636 Out << " = delete";
638 Out << " = default";
643 Out << '\n';
644 DeclPrinter ParamPrinter(Out, SubPolicy, Indentation);
649 Out << ";\n";
653 Out << ' ';
656 D->getBody()->printPretty(Out, nullptr, SubPolicy, Indentation);
657 Out << '\n';
666 Out << "friend ";
667 Out << " " << TSI->getType().getAsString(Policy);
671 Out << "friend ";
676 Out << "friend ";
681 Out << "friend ";
689 Out << "mutable ";
691 Out << "__module_private__ ";
693 Out << D->getASTContext().getUnqualifiedObjCPointerType(D->getType()).
697 Out << " : ";
698 D->getBitWidth()->printPretty(Out, nullptr, Policy, Indentation);
704 Out << " ";
706 Out << " = ";
707 Init->printPretty(Out, nullptr, Policy, Indentation);
713 Out << *D << ":";
726 Out << VarDecl::getStorageClassSpecifierString(SC) << " ";
732 Out << "__thread ";
735 Out << "_Thread_local ";
738 Out << "thread_local ";
743 Out << "__module_private__ ";
746 Out << "constexpr ";
765 Out << "(";
767 Out << " = ";
772 Init->printPretty(Out, nullptr, SubPolicy, Indentation);
774 Out << ")";
785 Out << "__asm (";
786 D->getAsmString()->printPretty(Out, nullptr, Policy, Indentation);
787 Out << ")";
791 Out << "@import " << D->getImportedModule()->getFullModuleName()
796 Out << "static_assert(";
797 D->getAssertExpr()->printPretty(Out, nullptr, Policy, Indentation);
799 Out << ", ";
800 SL->printPretty(Out, nullptr, Policy, Indentation);
802 Out << ")";
810 Out << "inline ";
811 Out << "namespace " << *D << " {\n";
817 Out << "using namespace ";
819 D->getQualifier()->print(Out, Policy);
820 Out << *D->getNominatedNamespaceAsWritten();
824 Out << "namespace " << *D << " = ";
826 D->getQualifier()->print(Out, Policy);
827 Out << *D->getAliasedNamespace();
837 Out << "__module_private__ ";
838 Out << D->getKindName();
843 Out << ' ' << *D;
848 Out << " : ";
852 Out << ", ";
855 Out << "virtual ";
860 Out << " ";
862 Out << Base->getType().getAsString(Policy);
865 Out << "...";
871 Out << " {\n";
887 Out << "extern \"" << l << "\" ";
889 Out << "{\n";
901 Out << "template <";
905 Out << ", ";
912 Out << "typename ";
914 Out << "class ";
917 Out << "...";
919 Out << *TTP;
922 Out << " = ";
923 Args->get(i).print(Policy, Out);
925 Out << " = ";
926 Out << TTP->getDefaultArgument().getAsString(Policy);
936 Out << " = ";
937 Args->get(i).print(Policy, Out);
939 Out << " = ";
940 NTTP->getDefaultArgument()->printPretty(Out, nullptr, Policy,
950 Out << "> ";
958 Out << "class ";
960 Out << "...";
961 Out << D->getName();
987 Out << '\n';
1001 Out << '(';
1003 Out << "in ";
1005 Out << "inout ";
1007 Out << "out ";
1009 Out << "bycopy ";
1011 Out << "byref ";
1013 Out << "oneway ";
1016 Out << getNullabilitySpelling(*nullability, true) << ' ';
1019 Out << Ctx.getUnqualifiedObjCPointerType(T).getAsString(Policy);
1020 Out << ')';
1024 Out << "<";
1030 Out << ", ";
1038 Out << "__covariant ";
1042 Out << "__contravariant ";
1046 Out << Param->getDeclName().getAsString();
1049 Out << " : " << Param->getUnderlyingType().getAsString(Policy);
1052 Out << ">";
1057 Out << "- ";
1059 Out << "+ ";
1070 Out << " " << name.substr(lastPos, pos - lastPos) << ':';
1074 Out << *PI;
1079 Out << " " << name;
1082 Out << ", ...";
1087 Out << ' ';
1088 OMD->getBody()->printPretty(Out, nullptr, Policy);
1091 Out << ';';
1100 Out << "@implementation " << I << " : " << *SID;
1102 Out << "@implementation " << I;
1105 Out << "{\n";
1113 Out << "}\n";
1116 Out << "\n";
1121 Out << "\n";
1122 Out << "@end";
1130 Out << "@class " << I;
1136 Out << ";";
1140 Out << "@interface " << I;
1147 Out << " : " << QualType(OID->getSuperClassType(), 0).getAsString(Policy);
1154 Out << (I == Protocols.begin() ? '<' : ',') << **I;
1155 Out << "> ";
1159 Out << "{\n";
1168 Out << "}\n";
1171 Out << "\n";
1177 Out << "\n";
1178 Out << "@end";
1184 Out << "@protocol " << *PID << ";\n";
1190 Out << "@protocol " << *PID;
1193 Out << (I == Protocols.begin() ? '<' : ',') << **I;
1194 Out << ">\n";
1196 Out << "@protocol " << *PID << '\n';
1198 Out << "@end";
1202 Out << "@implementation " << *PID->getClassInterface() << '(' << *PID <<")\n";
1205 Out << "@end";
1210 Out << "@interface " << *PID->getClassInterface();
1214 Out << "(" << *PID << ")\n";
1216 Out << "{\n";
1222 Out << "}\n";
1226 Out << "@end";
1232 Out << "@compatibility_alias " << *AID
1240 Out << "@required\n";
1242 Out << "@optional\n";
1246 Out << "@property";
1249 Out << " (";
1252 Out << (first ? ' ' : ',') << "readonly";
1257 Out << (first ? ' ' : ',') << "getter = ";
1258 PDecl->getGetterName().print(Out);
1262 Out << (first ? ' ' : ',') << "setter = ";
1263 PDecl->getSetterName().print(Out);
1268 Out << (first ? ' ' : ',') << "assign";
1274 Out << (first ? ' ' : ',') << "readwrite";
1279 Out << (first ? ' ' : ',') << "retain";
1284 Out << (first ? ' ' : ',') << "strong";
1289 Out << (first ? ' ' : ',') << "copy";
1295 Out << (first ? ' ' : ',') << "nonatomic";
1300 Out << (first ? ' ' : ',') << "atomic";
1310 Out << (first ? ' ' : ',') << "null_resettable";
1312 Out << (first ? ' ' : ',')
1320 Out << (first ? ' ' : ',') << "class";
1325 Out << " )";
1327 Out << ' ' << PDecl->getASTContext().getUnqualifiedObjCPointerType(T).
1330 Out << ';';
1335 Out << "@synthesize ";
1337 Out << "@dynamic ";
1338 Out << *PID->getPropertyDecl();
1340 Out << '=' << *PID->getPropertyIvarDecl();
1345 Out << "using ";
1347 Out << "typename ";
1348 D->getQualifier()->print(Out, Policy);
1349 Out << *D;
1354 Out << "using typename ";
1355 D->getQualifier()->print(Out, Policy);
1356 Out << D->getDeclName();
1361 Out << "using ";
1362 D->getQualifier()->print(Out, Policy);
1363 Out << D->getDeclName();
1371 Out << "#pragma omp threadprivate";
1376 Out << (I == D->varlist_begin() ? '(' : ',');
1378 ND->printQualifiedName(Out);
1380 Out << ")";
1386 Out << "#pragma omp declare reduction (";
1397 Out << OpName;
1400 D->printName(Out);
1402 Out << " : ";
1403 D->getType().print(Out, Policy);
1404 Out << " : ";
1405 D->getCombiner()->printPretty(Out, nullptr, Policy, 0);
1406 Out << ")";
1408 Out << " initializer(";
1409 Init->printPretty(Out, nullptr, Policy, 0);
1410 Out << ")";
1416 D->getInit()->printPretty(Out, nullptr, Policy, Indentation);