Lines Matching refs:OS
35 raw_ostream &OS; member in __anon226305b60111::StmtPrinter
44 : OS(os), IndentLevel(Indentation), Helper(helper), Policy(Policy) {} in StmtPrinter()
56 OS << ";\n"; in PrintStmt()
79 OS << "<null expr>"; in PrintExpr()
84 OS << " "; in Indent()
85 return OS; in Indent()
89 if (Helper && Helper->handledStmt(S,OS)) in Visit()
98 OS << "<<unknown expr type>>"; in VisitExpr()
116 OS << "{\n"; in PrintRawCompoundStmt()
124 D->print(OS, Policy, IndentLevel); in PrintRawDecl()
129 Decl::printGroup(Decls.data(), Decls.size(), OS, Policy, IndentLevel); in PrintRawDeclStmt()
139 OS << ";\n"; in VisitDeclStmt()
145 OS << "\n"; in VisitCompoundStmt()
152 OS << " ... "; in VisitCaseStmt()
155 OS << ":\n"; in VisitCaseStmt()
172 Attr->printPretty(OS, Policy); in VisitAttributedStmt()
179 OS << "if ("; in PrintRawIfStmt()
184 OS << ')'; in PrintRawIfStmt()
187 OS << ' '; in PrintRawIfStmt()
189 OS << (If->getElse() ? ' ' : '\n'); in PrintRawIfStmt()
191 OS << '\n'; in PrintRawIfStmt()
197 OS << "else"; in PrintRawIfStmt()
200 OS << ' '; in PrintRawIfStmt()
202 OS << '\n'; in PrintRawIfStmt()
204 OS << ' '; in PrintRawIfStmt()
207 OS << '\n'; in PrintRawIfStmt()
224 OS << ")"; in VisitSwitchStmt()
228 OS << " "; in VisitSwitchStmt()
230 OS << "\n"; in VisitSwitchStmt()
232 OS << "\n"; in VisitSwitchStmt()
243 OS << ")\n"; in VisitWhileStmt()
251 OS << " "; in VisitDoStmt()
253 OS << "\n"; in VisitDoStmt()
258 OS << "while ("; in VisitDoStmt()
260 OS << ");\n"; in VisitDoStmt()
271 OS << ";"; in VisitForStmt()
273 OS << " "; in VisitForStmt()
276 OS << ";"; in VisitForStmt()
278 OS << " "; in VisitForStmt()
281 OS << ") "; in VisitForStmt()
285 OS << "\n"; in VisitForStmt()
287 OS << "\n"; in VisitForStmt()
298 OS << " in "; in VisitObjCForCollectionStmt()
300 OS << ") "; in VisitObjCForCollectionStmt()
304 OS << "\n"; in VisitObjCForCollectionStmt()
306 OS << "\n"; in VisitObjCForCollectionStmt()
315 Node->getLoopVariable()->print(OS, SubPolicy, IndentLevel); in VisitCXXForRangeStmt()
316 OS << " : "; in VisitCXXForRangeStmt()
318 OS << ") {\n"; in VisitCXXForRangeStmt()
321 if (Policy.IncludeNewlines) OS << "\n"; in VisitCXXForRangeStmt()
327 OS << "__if_exists ("; in VisitMSDependentExistsStmt()
329 OS << "__if_not_exists ("; in VisitMSDependentExistsStmt()
333 Qualifier->print(OS, Policy); in VisitMSDependentExistsStmt()
335 OS << Node->getNameInfo() << ") "; in VisitMSDependentExistsStmt()
342 if (Policy.IncludeNewlines) OS << "\n"; in VisitGotoStmt()
348 OS << ";"; in VisitIndirectGotoStmt()
349 if (Policy.IncludeNewlines) OS << "\n"; in VisitIndirectGotoStmt()
354 if (Policy.IncludeNewlines) OS << "\n"; in VisitContinueStmt()
359 if (Policy.IncludeNewlines) OS << "\n"; in VisitBreakStmt()
366 OS << " "; in VisitReturnStmt()
369 OS << ";"; in VisitReturnStmt()
370 if (Policy.IncludeNewlines) OS << "\n"; in VisitReturnStmt()
378 OS << "volatile "; in VisitGCCAsmStmt()
380 OS << "("; in VisitGCCAsmStmt()
386 OS << " : "; in VisitGCCAsmStmt()
390 OS << ", "; in VisitGCCAsmStmt()
393 OS << '['; in VisitGCCAsmStmt()
394 OS << Node->getOutputName(i); in VisitGCCAsmStmt()
395 OS << "] "; in VisitGCCAsmStmt()
399 OS << " "; in VisitGCCAsmStmt()
405 OS << " : "; in VisitGCCAsmStmt()
409 OS << ", "; in VisitGCCAsmStmt()
412 OS << '['; in VisitGCCAsmStmt()
413 OS << Node->getInputName(i); in VisitGCCAsmStmt()
414 OS << "] "; in VisitGCCAsmStmt()
418 OS << " "; in VisitGCCAsmStmt()
424 OS << " : "; in VisitGCCAsmStmt()
428 OS << ", "; in VisitGCCAsmStmt()
433 OS << ");"; in VisitGCCAsmStmt()
434 if (Policy.IncludeNewlines) OS << "\n"; in VisitGCCAsmStmt()
441 OS << "{\n"; in VisitMSAsmStmt()
442 OS << Node->getAsmString() << "\n"; in VisitMSAsmStmt()
455 OS << "\n"; in VisitObjCAtTryStmt()
465 OS << ")"; in VisitObjCAtTryStmt()
468 OS << "\n"; in VisitObjCAtTryStmt()
476 OS << "\n"; in VisitObjCAtTryStmt()
490 OS << " "; in VisitObjCAtThrowStmt()
493 OS << ";\n"; in VisitObjCAtThrowStmt()
499 OS << ")"; in VisitObjCAtSynchronizedStmt()
501 OS << "\n"; in VisitObjCAtSynchronizedStmt()
507 OS << "\n"; in VisitObjCAutoreleasePoolStmt()
511 OS << "catch ("; in PrintRawCXXCatchStmt()
515 OS << "..."; in PrintRawCXXCatchStmt()
516 OS << ") "; in PrintRawCXXCatchStmt()
523 OS << "\n"; in VisitCXXCatchStmt()
530 OS << " "; in VisitCXXTryStmt()
533 OS << "\n"; in VisitCXXTryStmt()
547 OS << "\n"; in VisitSEHTryStmt()
551 OS << "__finally "; in PrintRawSEHFinallyStmt()
553 OS << "\n"; in PrintRawSEHFinallyStmt()
557 OS << "__except ("; in PrintRawSEHExceptHandler()
559 OS << ")\n"; in PrintRawSEHExceptHandler()
561 OS << "\n"; in PrintRawSEHExceptHandler()
567 OS << "\n"; in VisitSEHExceptStmt()
573 OS << "\n"; in VisitSEHFinallyStmt()
578 if (Policy.IncludeNewlines) OS << "\n"; in VisitSEHLeaveStmt()
587 raw_ostream &OS; member in __anon226305b60211::OMPClausePrinter
593 OMPClausePrinter(raw_ostream &OS, const PrintingPolicy &Policy) in OMPClausePrinter() argument
594 : OS(OS), Policy(Policy) { } in OMPClausePrinter()
601 OS << "if("; in VisitOMPIfClause()
602 Node->getCondition()->printPretty(OS, nullptr, Policy, 0); in VisitOMPIfClause()
603 OS << ")"; in VisitOMPIfClause()
607 OS << "num_threads("; in VisitOMPNumThreadsClause()
608 Node->getNumThreads()->printPretty(OS, nullptr, Policy, 0); in VisitOMPNumThreadsClause()
609 OS << ")"; in VisitOMPNumThreadsClause()
613 OS << "safelen("; in VisitOMPSafelenClause()
614 Node->getSafelen()->printPretty(OS, nullptr, Policy, 0); in VisitOMPSafelenClause()
615 OS << ")"; in VisitOMPSafelenClause()
619 OS << "collapse("; in VisitOMPCollapseClause()
620 Node->getNumForLoops()->printPretty(OS, nullptr, Policy, 0); in VisitOMPCollapseClause()
621 OS << ")"; in VisitOMPCollapseClause()
625 OS << "default(" in VisitOMPDefaultClause()
631 OS << "proc_bind(" in VisitOMPProcBindClause()
637 OS << "schedule(" in VisitOMPScheduleClause()
640 OS << ", "; in VisitOMPScheduleClause()
641 Node->getChunkSize()->printPretty(OS, nullptr, Policy); in VisitOMPScheduleClause()
643 OS << ")"; in VisitOMPScheduleClause()
647 OS << "ordered"; in VisitOMPOrderedClause()
651 OS << "nowait"; in VisitOMPNowaitClause()
661 OS << (I == Node->varlist_begin() ? StartSym : ','); in VisitOMPClauseList()
662 cast<NamedDecl>(DRE->getDecl())->printQualifiedName(OS); in VisitOMPClauseList()
664 OS << (I == Node->varlist_begin() ? StartSym : ','); in VisitOMPClauseList()
665 (*I)->printPretty(OS, nullptr, Policy, 0); in VisitOMPClauseList()
672 OS << "private"; in VisitOMPPrivateClause()
674 OS << ")"; in VisitOMPPrivateClause()
680 OS << "firstprivate"; in VisitOMPFirstprivateClause()
682 OS << ")"; in VisitOMPFirstprivateClause()
688 OS << "lastprivate"; in VisitOMPLastprivateClause()
690 OS << ")"; in VisitOMPLastprivateClause()
696 OS << "shared"; in VisitOMPSharedClause()
698 OS << ")"; in VisitOMPSharedClause()
704 OS << "reduction("; in VisitOMPReductionClause()
711 OS << getOperatorSpelling(OOK); in VisitOMPReductionClause()
715 QualifierLoc->print(OS, Policy); in VisitOMPReductionClause()
716 OS << Node->getNameInfo(); in VisitOMPReductionClause()
718 OS << ":"; in VisitOMPReductionClause()
720 OS << ")"; in VisitOMPReductionClause()
726 OS << "linear"; in VisitOMPLinearClause()
729 OS << ": "; in VisitOMPLinearClause()
730 Node->getStep()->printPretty(OS, nullptr, Policy, 0); in VisitOMPLinearClause()
732 OS << ")"; in VisitOMPLinearClause()
738 OS << "aligned"; in VisitOMPAlignedClause()
741 OS << ": "; in VisitOMPAlignedClause()
742 Node->getAlignment()->printPretty(OS, nullptr, Policy, 0); in VisitOMPAlignedClause()
744 OS << ")"; in VisitOMPAlignedClause()
750 OS << "copyin"; in VisitOMPCopyinClause()
752 OS << ")"; in VisitOMPCopyinClause()
758 OS << "copyprivate"; in VisitOMPCopyprivateClause()
760 OS << ")"; in VisitOMPCopyprivateClause()
771 OMPClausePrinter Printer(OS, Policy); in PrintOMPExecutableDirective()
777 OS << ' '; in PrintOMPExecutableDirective()
779 OS << "\n"; in PrintOMPExecutableDirective()
835 Qualifier->print(OS, Policy); in VisitDeclRefExpr()
837 OS << "template "; in VisitDeclRefExpr()
838 OS << Node->getNameInfo(); in VisitDeclRefExpr()
841 OS, Node->getTemplateArgs(), Node->getNumTemplateArgs(), Policy); in VisitDeclRefExpr()
847 Qualifier->print(OS, Policy); in VisitDependentScopeDeclRefExpr()
849 OS << "template "; in VisitDependentScopeDeclRefExpr()
850 OS << Node->getNameInfo(); in VisitDependentScopeDeclRefExpr()
853 OS, Node->getTemplateArgs(), Node->getNumTemplateArgs(), Policy); in VisitDependentScopeDeclRefExpr()
858 Node->getQualifier()->print(OS, Policy); in VisitUnresolvedLookupExpr()
860 OS << "template "; in VisitUnresolvedLookupExpr()
861 OS << Node->getNameInfo(); in VisitUnresolvedLookupExpr()
864 OS, Node->getTemplateArgs(), Node->getNumTemplateArgs(), Policy); in VisitUnresolvedLookupExpr()
870 OS << (Node->isArrow() ? "->" : "."); in VisitObjCIvarRefExpr()
872 OS << *Node->getDecl(); in VisitObjCIvarRefExpr()
877 OS << "super."; in VisitObjCPropertyRefExpr()
880 OS << "."; in VisitObjCPropertyRefExpr()
882 OS << Node->getClassReceiver()->getName() << "."; in VisitObjCPropertyRefExpr()
886 Node->getImplicitPropertyGetter()->getSelector().print(OS); in VisitObjCPropertyRefExpr()
888 OS << Node->getExplicitProperty()->getName(); in VisitObjCPropertyRefExpr()
894 OS << "["; in VisitObjCSubscriptRefExpr()
896 OS << "]"; in VisitObjCSubscriptRefExpr()
904 OS << "__func__"; in VisitPredefinedExpr()
907 OS << "__FUNCTION__"; in VisitPredefinedExpr()
910 OS << "__FUNCDNAME__"; in VisitPredefinedExpr()
913 OS << "__FUNCSIG__"; in VisitPredefinedExpr()
916 OS << "L__FUNCTION__"; in VisitPredefinedExpr()
919 OS << "__PRETTY_FUNCTION__"; in VisitPredefinedExpr()
929 case CharacterLiteral::Wide: OS << 'L'; break; in VisitCharacterLiteral()
930 case CharacterLiteral::UTF16: OS << 'u'; break; in VisitCharacterLiteral()
931 case CharacterLiteral::UTF32: OS << 'U'; break; in VisitCharacterLiteral()
936 OS << "'\\\\'"; in VisitCharacterLiteral()
939 OS << "'\\''"; in VisitCharacterLiteral()
943 OS << "'\\a'"; in VisitCharacterLiteral()
946 OS << "'\\b'"; in VisitCharacterLiteral()
953 OS << "'\\f'"; in VisitCharacterLiteral()
956 OS << "'\\n'"; in VisitCharacterLiteral()
959 OS << "'\\r'"; in VisitCharacterLiteral()
962 OS << "'\\t'"; in VisitCharacterLiteral()
965 OS << "'\\v'"; in VisitCharacterLiteral()
969 OS << "'" << (char)value << "'"; in VisitCharacterLiteral()
971 OS << "'\\x" << llvm::format("%02x", value) << "'"; in VisitCharacterLiteral()
973 OS << "'\\u" << llvm::format("%04x", value) << "'"; in VisitCharacterLiteral()
975 OS << "'\\U" << llvm::format("%08x", value) << "'"; in VisitCharacterLiteral()
981 OS << Node->getValue().toString(10, isSigned); in VisitIntegerLiteral()
986 case BuiltinType::SChar: OS << "i8"; break; in VisitIntegerLiteral()
987 case BuiltinType::UChar: OS << "Ui8"; break; in VisitIntegerLiteral()
988 case BuiltinType::Short: OS << "i16"; break; in VisitIntegerLiteral()
989 case BuiltinType::UShort: OS << "Ui16"; break; in VisitIntegerLiteral()
991 case BuiltinType::UInt: OS << 'U'; break; in VisitIntegerLiteral()
992 case BuiltinType::Long: OS << 'L'; break; in VisitIntegerLiteral()
993 case BuiltinType::ULong: OS << "UL"; break; in VisitIntegerLiteral()
994 case BuiltinType::LongLong: OS << "LL"; break; in VisitIntegerLiteral()
995 case BuiltinType::ULongLong: OS << "ULL"; break; in VisitIntegerLiteral()
996 case BuiltinType::Int128: OS << "i128"; break; in VisitIntegerLiteral()
997 case BuiltinType::UInt128: OS << "Ui128"; break; in VisitIntegerLiteral()
1001 static void PrintFloatingLiteral(raw_ostream &OS, FloatingLiteral *Node, in PrintFloatingLiteral() argument
1005 OS << Str; in PrintFloatingLiteral()
1007 OS << '.'; // Trailing dot in order to separate from ints. in PrintFloatingLiteral()
1017 case BuiltinType::Float: OS << 'F'; break; in PrintFloatingLiteral()
1018 case BuiltinType::LongDouble: OS << 'L'; break; in PrintFloatingLiteral()
1023 PrintFloatingLiteral(OS, Node, /*PrintSuffix=*/true); in VisitFloatingLiteral()
1028 OS << "i"; in VisitImaginaryLiteral()
1032 Str->outputString(OS); in VisitStringLiteral()
1035 OS << "("; in VisitParenExpr()
1037 OS << ")"; in VisitParenExpr()
1041 OS << UnaryOperator::getOpcodeStr(Node->getOpcode()); in VisitUnaryOperator()
1050 OS << ' '; in VisitUnaryOperator()
1055 OS << ' '; in VisitUnaryOperator()
1062 OS << UnaryOperator::getOpcodeStr(Node->getOpcode()); in VisitUnaryOperator()
1066 OS << "__builtin_offsetof("; in VisitOffsetOfExpr()
1067 Node->getTypeSourceInfo()->getType().print(OS, Policy); in VisitOffsetOfExpr()
1068 OS << ", "; in VisitOffsetOfExpr()
1074 OS << "["; in VisitOffsetOfExpr()
1076 OS << "]"; in VisitOffsetOfExpr()
1091 OS << "."; in VisitOffsetOfExpr()
1094 OS << Id->getName(); in VisitOffsetOfExpr()
1096 OS << ")"; in VisitOffsetOfExpr()
1102 OS << "sizeof"; in VisitUnaryExprOrTypeTraitExpr()
1106 OS << "alignof"; in VisitUnaryExprOrTypeTraitExpr()
1108 OS << "_Alignof"; in VisitUnaryExprOrTypeTraitExpr()
1110 OS << "__alignof"; in VisitUnaryExprOrTypeTraitExpr()
1113 OS << "vec_step"; in VisitUnaryExprOrTypeTraitExpr()
1117 OS << '('; in VisitUnaryExprOrTypeTraitExpr()
1118 Node->getArgumentType().print(OS, Policy); in VisitUnaryExprOrTypeTraitExpr()
1119 OS << ')'; in VisitUnaryExprOrTypeTraitExpr()
1121 OS << " "; in VisitUnaryExprOrTypeTraitExpr()
1127 OS << "_Generic("; in VisitGenericSelectionExpr()
1130 OS << ", "; in VisitGenericSelectionExpr()
1133 OS << "default"; in VisitGenericSelectionExpr()
1135 T.print(OS, Policy); in VisitGenericSelectionExpr()
1136 OS << ": "; in VisitGenericSelectionExpr()
1139 OS << ")"; in VisitGenericSelectionExpr()
1144 OS << "["; in VisitArraySubscriptExpr()
1146 OS << "]"; in VisitArraySubscriptExpr()
1156 if (i) OS << ", "; in PrintCallArgs()
1163 OS << "("; in VisitCallExpr()
1165 OS << ")"; in VisitCallExpr()
1176 OS << (Node->isArrow() ? "->" : "."); in VisitMemberExpr()
1183 Qualifier->print(OS, Policy); in VisitMemberExpr()
1185 OS << "template "; in VisitMemberExpr()
1186 OS << Node->getMemberNameInfo(); in VisitMemberExpr()
1189 OS, Node->getTemplateArgs(), Node->getNumTemplateArgs(), Policy); in VisitMemberExpr()
1193 OS << (Node->isArrow() ? "->isa" : ".isa"); in VisitObjCIsaExpr()
1198 OS << "."; in VisitExtVectorElementExpr()
1199 OS << Node->getAccessor().getName(); in VisitExtVectorElementExpr()
1202 OS << '('; in VisitCStyleCastExpr()
1203 Node->getTypeAsWritten().print(OS, Policy); in VisitCStyleCastExpr()
1204 OS << ')'; in VisitCStyleCastExpr()
1208 OS << '('; in VisitCompoundLiteralExpr()
1209 Node->getType().print(OS, Policy); in VisitCompoundLiteralExpr()
1210 OS << ')'; in VisitCompoundLiteralExpr()
1219 OS << " " << BinaryOperator::getOpcodeStr(Node->getOpcode()) << " "; in VisitBinaryOperator()
1224 OS << " " << BinaryOperator::getOpcodeStr(Node->getOpcode()) << " "; in VisitCompoundAssignOperator()
1229 OS << " ? "; in VisitConditionalOperator()
1231 OS << " : "; in VisitConditionalOperator()
1240 OS << " ?: "; in VisitBinaryConditionalOperator()
1244 OS << "&&" << Node->getLabel()->getName(); in VisitAddrLabelExpr()
1248 OS << "("; in VisitStmtExpr()
1250 OS << ")"; in VisitStmtExpr()
1254 OS << "__builtin_choose_expr("; in VisitChooseExpr()
1256 OS << ", "; in VisitChooseExpr()
1258 OS << ", "; in VisitChooseExpr()
1260 OS << ")"; in VisitChooseExpr()
1264 OS << "__null"; in VisitGNUNullExpr()
1268 OS << "__builtin_shufflevector("; in VisitShuffleVectorExpr()
1270 if (i) OS << ", "; in VisitShuffleVectorExpr()
1273 OS << ")"; in VisitShuffleVectorExpr()
1277 OS << "__builtin_convertvector("; in VisitConvertVectorExpr()
1279 OS << ", "; in VisitConvertVectorExpr()
1280 Node->getType().print(OS, Policy); in VisitConvertVectorExpr()
1281 OS << ")"; in VisitConvertVectorExpr()
1290 OS << "{ "; in VisitInitListExpr()
1292 if (i) OS << ", "; in VisitInitListExpr()
1296 OS << "0"; in VisitInitListExpr()
1298 OS << " }"; in VisitInitListExpr()
1302 OS << "( "; in VisitParenListExpr()
1304 if (i) OS << ", "; in VisitParenListExpr()
1307 OS << " )"; in VisitParenListExpr()
1317 OS << II->getName() << ":"; in VisitDesignatedInitExpr()
1319 OS << "." << D->getFieldName()->getName(); in VisitDesignatedInitExpr()
1322 OS << "["; in VisitDesignatedInitExpr()
1327 OS << " ... "; in VisitDesignatedInitExpr()
1330 OS << "]"; in VisitDesignatedInitExpr()
1334 OS << " = "; in VisitDesignatedInitExpr()
1340 OS << "/*implicit*/"; in VisitImplicitValueInitExpr()
1341 Node->getType().print(OS, Policy); in VisitImplicitValueInitExpr()
1342 OS << "()"; in VisitImplicitValueInitExpr()
1344 OS << "/*implicit*/("; in VisitImplicitValueInitExpr()
1345 Node->getType().print(OS, Policy); in VisitImplicitValueInitExpr()
1346 OS << ')'; in VisitImplicitValueInitExpr()
1348 OS << "{}"; in VisitImplicitValueInitExpr()
1350 OS << 0; in VisitImplicitValueInitExpr()
1355 OS << "__builtin_va_arg("; in VisitVAArgExpr()
1357 OS << ", "; in VisitVAArgExpr()
1358 Node->getType().print(OS, Policy); in VisitVAArgExpr()
1359 OS << ")"; in VisitVAArgExpr()
1376 OS << Name; in VisitAtomicExpr()
1382 OS << ", "; in VisitAtomicExpr()
1387 OS << ", "; in VisitAtomicExpr()
1392 OS << ", "; in VisitAtomicExpr()
1396 OS << ", "; in VisitAtomicExpr()
1400 OS << ", "; in VisitAtomicExpr()
1403 OS << ")"; in VisitAtomicExpr()
1418 OS << OpStrings[Kind] << ' '; in VisitCXXOperatorCallExpr()
1422 OS << ' ' << OpStrings[Kind]; in VisitCXXOperatorCallExpr()
1428 OS << '('; in VisitCXXOperatorCallExpr()
1431 OS << ", "; in VisitCXXOperatorCallExpr()
1435 OS << ')'; in VisitCXXOperatorCallExpr()
1438 OS << '['; in VisitCXXOperatorCallExpr()
1440 OS << ']'; in VisitCXXOperatorCallExpr()
1442 OS << OpStrings[Kind] << ' '; in VisitCXXOperatorCallExpr()
1446 OS << ' ' << OpStrings[Kind] << ' '; in VisitCXXOperatorCallExpr()
1465 OS << "<<<"; in VisitCUDAKernelCallExpr()
1467 OS << ">>>("; in VisitCUDAKernelCallExpr()
1469 OS << ")"; in VisitCUDAKernelCallExpr()
1473 OS << Node->getCastName() << '<'; in VisitCXXNamedCastExpr()
1474 Node->getTypeAsWritten().print(OS, Policy); in VisitCXXNamedCastExpr()
1475 OS << ">("; in VisitCXXNamedCastExpr()
1477 OS << ")"; in VisitCXXNamedCastExpr()
1497 OS << "typeid("; in VisitCXXTypeidExpr()
1499 Node->getTypeOperandSourceInfo()->getType().print(OS, Policy); in VisitCXXTypeidExpr()
1503 OS << ")"; in VisitCXXTypeidExpr()
1507 OS << "__uuidof("; in VisitCXXUuidofExpr()
1509 Node->getTypeOperandSourceInfo()->getType().print(OS, Policy); in VisitCXXUuidofExpr()
1513 OS << ")"; in VisitCXXUuidofExpr()
1519 OS << "->"; in VisitMSPropertyRefExpr()
1521 OS << "."; in VisitMSPropertyRefExpr()
1524 Qualifier->print(OS, Policy); in VisitMSPropertyRefExpr()
1525 OS << Node->getPropertyDecl()->getDeclName(); in VisitMSPropertyRefExpr()
1531 OS << cast<StringLiteral>(Node->getArg(0)->IgnoreImpCasts())->getString(); in VisitUserDefinedLiteral()
1542 OS << C; in VisitUserDefinedLiteral()
1549 OS << Int->getValue().toString(10, /*isSigned*/false); in VisitUserDefinedLiteral()
1555 PrintFloatingLiteral(OS, Float, /*PrintSuffix=*/false); in VisitUserDefinedLiteral()
1563 OS << Node->getUDSuffix()->getName(); in VisitUserDefinedLiteral()
1567 OS << (Node->getValue() ? "true" : "false"); in VisitCXXBoolLiteralExpr()
1571 OS << "nullptr"; in VisitCXXNullPtrLiteralExpr()
1575 OS << "this"; in VisitCXXThisExpr()
1580 OS << "throw"; in VisitCXXThrowExpr()
1582 OS << "throw "; in VisitCXXThrowExpr()
1596 Node->getType().print(OS, Policy); in VisitCXXFunctionalCastExpr()
1597 OS << "("; in VisitCXXFunctionalCastExpr()
1599 OS << ")"; in VisitCXXFunctionalCastExpr()
1607 Node->getType().print(OS, Policy); in VisitCXXTemporaryObjectExpr()
1608 OS << "("; in VisitCXXTemporaryObjectExpr()
1615 OS << ", "; in VisitCXXTemporaryObjectExpr()
1618 OS << ")"; in VisitCXXTemporaryObjectExpr()
1622 OS << '['; in VisitLambdaExpr()
1629 OS << '='; in VisitLambdaExpr()
1634 OS << '&'; in VisitLambdaExpr()
1643 OS << ", "; in VisitLambdaExpr()
1648 OS << "this"; in VisitLambdaExpr()
1653 OS << '&'; in VisitLambdaExpr()
1654 OS << C->getCapturedVar()->getName(); in VisitLambdaExpr()
1658 OS << C->getCapturedVar()->getName(); in VisitLambdaExpr()
1665 OS << ']'; in VisitLambdaExpr()
1668 OS << " ("; in VisitLambdaExpr()
1673 OS << ", "; in VisitLambdaExpr()
1678 P->getOriginalType().print(OS, Policy, ParamStr); in VisitLambdaExpr()
1682 OS << ", "; in VisitLambdaExpr()
1683 OS << "..."; in VisitLambdaExpr()
1685 OS << ')'; in VisitLambdaExpr()
1688 OS << " mutable"; in VisitLambdaExpr()
1692 Proto->printExceptionSpecification(OS, Policy); in VisitLambdaExpr()
1698 OS << " -> "; in VisitLambdaExpr()
1699 Proto->getReturnType().print(OS, Policy); in VisitLambdaExpr()
1705 OS << ' '; in VisitLambdaExpr()
1711 TSInfo->getType().print(OS, Policy); in VisitCXXScalarValueInitExpr()
1713 Node->getType().print(OS, Policy); in VisitCXXScalarValueInitExpr()
1714 OS << "()"; in VisitCXXScalarValueInitExpr()
1719 OS << "::"; in VisitCXXNewExpr()
1720 OS << "new "; in VisitCXXNewExpr()
1723 OS << "("; in VisitCXXNewExpr()
1728 OS << ", "; in VisitCXXNewExpr()
1731 OS << ") "; in VisitCXXNewExpr()
1734 OS << "("; in VisitCXXNewExpr()
1742 E->getAllocatedType().print(OS, Policy, TypeS); in VisitCXXNewExpr()
1744 OS << ")"; in VisitCXXNewExpr()
1749 OS << "("; in VisitCXXNewExpr()
1752 OS << ")"; in VisitCXXNewExpr()
1758 OS << "::"; in VisitCXXDeleteExpr()
1759 OS << "delete "; in VisitCXXDeleteExpr()
1761 OS << "[] "; in VisitCXXDeleteExpr()
1768 OS << "->"; in VisitCXXPseudoDestructorExpr()
1770 OS << '.'; in VisitCXXPseudoDestructorExpr()
1772 E->getQualifier()->print(OS, Policy); in VisitCXXPseudoDestructorExpr()
1773 OS << "~"; in VisitCXXPseudoDestructorExpr()
1776 OS << II->getName(); in VisitCXXPseudoDestructorExpr()
1778 E->getDestroyedType().print(OS, Policy); in VisitCXXPseudoDestructorExpr()
1783 OS << "{ "; in VisitCXXConstructExpr()
1791 if (i) OS << ", "; in VisitCXXConstructExpr()
1796 OS << " }"; in VisitCXXConstructExpr()
1811 Node->getTypeAsWritten().print(OS, Policy); in VisitCXXUnresolvedConstructExpr()
1812 OS << "("; in VisitCXXUnresolvedConstructExpr()
1817 OS << ", "; in VisitCXXUnresolvedConstructExpr()
1820 OS << ")"; in VisitCXXUnresolvedConstructExpr()
1827 OS << (Node->isArrow() ? "->" : "."); in VisitCXXDependentScopeMemberExpr()
1830 Qualifier->print(OS, Policy); in VisitCXXDependentScopeMemberExpr()
1832 OS << "template "; in VisitCXXDependentScopeMemberExpr()
1833 OS << Node->getMemberNameInfo(); in VisitCXXDependentScopeMemberExpr()
1836 OS, Node->getTemplateArgs(), Node->getNumTemplateArgs(), Policy); in VisitCXXDependentScopeMemberExpr()
1842 OS << (Node->isArrow() ? "->" : "."); in VisitUnresolvedMemberExpr()
1845 Qualifier->print(OS, Policy); in VisitUnresolvedMemberExpr()
1847 OS << "template "; in VisitUnresolvedMemberExpr()
1848 OS << Node->getMemberNameInfo(); in VisitUnresolvedMemberExpr()
1851 OS, Node->getTemplateArgs(), Node->getNumTemplateArgs(), Policy); in VisitUnresolvedMemberExpr()
1884 OS << getTypeTraitName(E->getTrait()) << "("; in VisitTypeTraitExpr()
1887 OS << ", "; in VisitTypeTraitExpr()
1888 E->getArg(I)->getType().print(OS, Policy); in VisitTypeTraitExpr()
1890 OS << ")"; in VisitTypeTraitExpr()
1894 OS << getTypeTraitName(E->getTrait()) << '('; in VisitArrayTypeTraitExpr()
1895 E->getQueriedType().print(OS, Policy); in VisitArrayTypeTraitExpr()
1896 OS << ')'; in VisitArrayTypeTraitExpr()
1900 OS << getExpressionTraitName(E->getTrait()) << '('; in VisitExpressionTraitExpr()
1902 OS << ')'; in VisitExpressionTraitExpr()
1906 OS << "noexcept("; in VisitCXXNoexceptExpr()
1908 OS << ")"; in VisitCXXNoexceptExpr()
1913 OS << "..."; in VisitPackExpansionExpr()
1917 OS << "sizeof...(" << *E->getPack() << ")"; in VisitSizeOfPackExpr()
1922 OS << *Node->getParameterPack(); in VisitSubstNonTypeTemplateParmPackExpr()
1931 OS << *E->getParameterPack(); in VisitFunctionParmPackExpr()
1941 OS << "@"; in VisitObjCStringLiteral()
1946 OS << "@"; in VisitObjCBoxedExpr()
1951 OS << "@[ "; in VisitObjCArrayLiteral()
1958 OS << ", "; in VisitObjCArrayLiteral()
1961 OS << " ]"; in VisitObjCArrayLiteral()
1965 OS << "@{ "; in VisitObjCDictionaryLiteral()
1968 OS << ", "; in VisitObjCDictionaryLiteral()
1972 OS << " : "; in VisitObjCDictionaryLiteral()
1975 OS << "..."; in VisitObjCDictionaryLiteral()
1977 OS << " }"; in VisitObjCDictionaryLiteral()
1981 OS << "@encode("; in VisitObjCEncodeExpr()
1982 Node->getEncodedType().print(OS, Policy); in VisitObjCEncodeExpr()
1983 OS << ')'; in VisitObjCEncodeExpr()
1987 OS << "@selector("; in VisitObjCSelectorExpr()
1988 Node->getSelector().print(OS); in VisitObjCSelectorExpr()
1989 OS << ')'; in VisitObjCSelectorExpr()
1993 OS << "@protocol(" << *Node->getProtocol() << ')'; in VisitObjCProtocolExpr()
1997 OS << "["; in VisitObjCMessageExpr()
2004 Mess->getClassReceiver().print(OS, Policy); in VisitObjCMessageExpr()
2009 OS << "Super"; in VisitObjCMessageExpr()
2013 OS << ' '; in VisitObjCMessageExpr()
2016 OS << selector.getNameForSlot(0); in VisitObjCMessageExpr()
2020 if (i > 0) OS << ' '; in VisitObjCMessageExpr()
2022 OS << selector.getIdentifierInfoForSlot(i)->getName() << ':'; in VisitObjCMessageExpr()
2024 OS << ":"; in VisitObjCMessageExpr()
2026 else OS << ", "; // Handle variadic methods. in VisitObjCMessageExpr()
2031 OS << "]"; in VisitObjCMessageExpr()
2035 OS << (Node->getValue() ? "__objc_yes" : "__objc_no"); in VisitObjCBoolLiteralExpr()
2045 OS << '(' << E->getBridgeKindName(); in VisitObjCBridgedCastExpr()
2046 E->getType().print(OS, Policy); in VisitObjCBridgedCastExpr()
2047 OS << ')'; in VisitObjCBridgedCastExpr()
2053 OS << "^"; in VisitBlockExpr()
2058 OS << "()"; in VisitBlockExpr()
2060 OS << '('; in VisitBlockExpr()
2063 if (AI != BD->param_begin()) OS << ", "; in VisitBlockExpr()
2065 (*AI)->getType().print(OS, Policy, ParamStr); in VisitBlockExpr()
2070 if (!BD->param_empty()) OS << ", "; in VisitBlockExpr()
2071 OS << "..."; in VisitBlockExpr()
2073 OS << ')'; in VisitBlockExpr()
2075 OS << "{ }"; in VisitBlockExpr()
2083 OS << "__builtin_astype("; in VisitAsTypeExpr()
2085 OS << ", "; in VisitAsTypeExpr()
2086 Node->getType().print(OS, Policy); in VisitAsTypeExpr()
2087 OS << ")"; in VisitAsTypeExpr()
2098 void Stmt::printPretty(raw_ostream &OS, in printPretty() argument
2102 StmtPrinter P(OS, Helper, Policy, Indentation); in printPretty()