Lines Matching refs:Out

28     raw_ostream &Out;
40 DeclPrinter(raw_ostream &Out, const PrintingPolicy &Policy,
42 : Out(Out), Policy(Policy), Indentation(Indentation),
89 void Decl::print(raw_ostream &Out, unsigned Indentation,
91 print(Out, getASTContext().getPrintingPolicy(), Indentation, PrintInstantiation);
94 void Decl::print(raw_ostream &Out, const PrintingPolicy &Policy,
96 DeclPrinter Printer(Out, Policy, Indentation, PrintInstantiation);
131 raw_ostream &Out, const PrintingPolicy &Policy,
134 (*Begin)->print(Out, Policy, Indentation);
145 TD->print(Out, Policy, Indentation);
146 Out << " ";
156 if (!isFirst) Out << ", ";
160 (*Begin)->print(Out, SubPolicy, Indentation);
179 void Decl::dump(raw_ostream &Out) const {
182 print(Out, Policy, /*Indentation*/ 0, /*PrintInstantiation*/ true);
187 Out << " ";
188 return Out;
196 A->printPretty(Out, Policy);
203 Decl::printGroup(Decls.data(), Decls.size(), Out, Policy, Indentation);
204 Out << ";\n";
212 case AS_public: Out << "public"; break;
213 case AS_protected: Out << "protected"; break;
214 case AS_private: Out << "private"; break;
286 Out << ":\n";
317 Out << Terminator;
318 Out << "\n";
334 Out << "typedef ";
337 Out << "__module_private__ ";
339 D->getUnderlyingType().print(Out, Policy, D->getName());
344 Out << "using " << *D << " = " << D->getUnderlyingType().getAsString(Policy);
349 Out << "__module_private__ ";
350 Out << "enum ";
353 Out << "class ";
355 Out << "struct ";
357 Out << *D;
360 Out << " : " << D->getIntegerType().stream(Policy);
363 Out << " {\n";
372 Out << "__module_private__ ";
373 Out << D->getKindName();
375 Out << ' ' << *D;
378 Out << " {\n";
385 Out << *D;
387 Out << " = ";
388 Init->printPretty(Out, 0, Policy, Indentation);
396 case SC_Extern: Out << "extern "; break;
397 case SC_Static: Out << "static "; break;
398 case SC_PrivateExtern: Out << "__private_extern__ "; break;
403 if (D->isInlineSpecified()) Out << "inline ";
404 if (D->isVirtualAsWritten()) Out << "virtual ";
405 if (D->isModulePrivate()) Out << "__module_private__ ";
492 Out << Proto;
496 Out << ", ";
500 Out << *FD;
502 Out << QualType(BMInitializer->getBaseClass(), 0).getAsString(Policy);
505 Out << "(";
529 SimpleInit->printPretty(Out, 0, Policy, Indentation);
536 Out << ", ";
537 Args[I]->printPretty(Out, 0, Policy, Indentation);
541 Out << ")";
545 AFT->getResultType().print(Out, Policy, Proto);
547 Ty.print(Out, Policy, Proto);
553 Out << " = 0";
555 Out << " = delete";
560 Out << '\n';
561 DeclPrinter ParamPrinter(Out, SubPolicy, Indentation);
566 Out << ";\n";
570 Out << ' ';
572 D->getBody()->printPretty(Out, 0, SubPolicy, Indentation);
573 Out << '\n';
579 Out << "mutable ";
581 Out << "__module_private__ ";
583 Out << D->getType().stream(Policy, D->getName());
586 Out << " : ";
587 D->getBitWidth()->printPretty(Out, 0, Policy, Indentation);
593 Out << " ";
595 Out << " = ";
596 Init->printPretty(Out, 0, Policy, Indentation);
602 Out << *D << ":";
609 Out << VarDecl::getStorageClassSpecifierString(SCAsWritten) << " ";
612 Out << "__thread ";
614 Out << "__module_private__ ";
619 T.print(Out, Policy, D->getName());
628 Out << "(";
630 Out << " = ";
632 Init->printPretty(Out, 0, Policy, Indentation);
634 Out << ")";
645 Out << "__asm (";
646 D->getAsmString()->printPretty(Out, 0, Policy, Indentation);
647 Out << ")";
651 Out << "@__experimental_modules_import " << D->getImportedModule()->getFullModuleName()
656 Out << "static_assert(";
657 D->getAssertExpr()->printPretty(Out, 0, Policy, Indentation);
658 Out << ", ";
659 D->getMessage()->printPretty(Out, 0, Policy, Indentation);
660 Out << ")";
668 Out << "inline ";
669 Out << "namespace " << *D << " {\n";
675 Out << "using namespace ";
677 D->getQualifier()->print(Out, Policy);
678 Out << *D->getNominatedNamespaceAsWritten();
682 Out << "namespace " << *D << " = ";
684 D->getQualifier()->print(Out, Policy);
685 Out << *D->getAliasedNamespace();
690 Out << "__module_private__ ";
691 Out << D->getKindName();
693 Out << ' ' << *D;
698 Out << " : ";
702 Out << ", ";
705 Out << "virtual ";
710 Out << " " << Base->getType().getAsString(Policy);
713 Out << "...";
719 Out << " {\n";
735 Out << "extern \"" << l << "\" ";
737 Out << "{\n";
749 Out << "template <";
753 Out << ", ";
760 Out << "typename ";
762 Out << "class ";
765 Out << "... ";
767 Out << *TTP;
770 Out << " = ";
771 Args->get(i).print(Policy, Out);
773 Out << " = ";
774 Out << TTP->getDefaultArgument().getAsString(Policy);
778 Out << NTTP->getType().getAsString(Policy);
781 Out << "...";
784 Out << ' ';
785 Out << Name->getName();
789 Out << " = ";
790 Args->get(i).print(Policy, Out);
792 Out << " = ";
793 NTTP->getDefaultArgument()->printPretty(Out, 0, Policy, Indentation);
802 Out << "> ";
810 Out << "class ";
812 Out << "...";
813 Out << D->getName();
839 Out << '\n';
852 Out << "- ";
854 Out << "+ ";
856 Out << '(' << OMD->getResultType().getAsString(Policy) << ")";
864 Out << " " << name.substr(lastPos, pos - lastPos);
865 Out << ":(" << (*PI)->getType().getAsString(Policy) << ')' << **PI;
870 Out << " " << name;
873 Out << ", ...";
876 Out << ' ';
877 OMD->getBody()->printPretty(Out, 0, Policy);
878 Out << '\n';
887 Out << "@implementation " << I << " : " << *SID;
889 Out << "@implementation " << I;
890 Out << "\n";
892 Out << "@end";
900 Out << "@class " << I << ";";
905 Out << "@interface " << I << " : " << *SID;
907 Out << "@interface " << I;
914 Out << (I == Protocols.begin() ? '<' : ',') << **I;
918 Out << "> ";
921 Out << "{\n";
928 Out << "}\n";
932 Out << "@end";
938 Out << "@protocol " << PID->getIdentifier() << ";\n";
942 Out << "@protocol " << *PID << '\n';
944 Out << "@end";
948 Out << "@implementation " << *PID->getClassInterface() << '(' << *PID <<")\n";
951 Out << "@end";
956 Out << "@interface " << *PID->getClassInterface() << '(' << *PID << ")\n";
958 Out << "@end";
964 Out << "@compatibility_alias " << *AID
972 Out << "@required\n";
974 Out << "@optional\n";
976 Out << "@property";
979 Out << " (";
982 Out << (first ? ' ' : ',') << "readonly";
987 Out << (first ? ' ' : ',') << "getter = "
992 Out << (first ? ' ' : ',') << "setter = "
998 Out << (first ? ' ' : ',') << "assign";
1004 Out << (first ? ' ' : ',') << "readwrite";
1009 Out << (first ? ' ' : ',') << "retain";
1014 Out << (first ? ' ' : ',') << "strong";
1019 Out << (first ? ' ' : ',') << "copy";
1025 Out << (first ? ' ' : ',') << "nonatomic";
1030 Out << (first ? ' ' : ',') << "atomic";
1035 Out << " )";
1037 Out << ' ' << PDecl->getType().getAsString(Policy) << ' ' << *PDecl;
1042 Out << "@synthesize ";
1044 Out << "@dynamic ";
1045 Out << *PID->getPropertyDecl();
1047 Out << '=' << *PID->getPropertyIvarDecl();
1051 Out << "using ";
1052 D->getQualifier()->print(Out, Policy);
1053 Out << *D;
1058 Out << "using typename ";
1059 D->getQualifier()->print(Out, Policy);
1060 Out << D->getDeclName();
1064 Out << "using ";
1065 D->getQualifier()->print(Out, Policy);
1066 Out << D->getDeclName();