Lines Matching refs:OS
94 raw_ostream &OS; member in __anon6c9e827f0111::ASTDumper
144 Dumper.OS.changeColor(Color.Color, Color.Bold); in ColorScope()
148 Dumper.OS.resetColor(); in ~ColorScope()
185 ASTDumper(raw_ostream &OS, const CommandTraits *Traits, in ASTDumper() argument
187 : OS(OS), Traits(Traits), SM(SM), IsFirstLine(true), MoreChildren(false), in ASTDumper()
191 ASTDumper(raw_ostream &OS, const CommandTraits *Traits, in ASTDumper() argument
193 : OS(OS), Traits(Traits), SM(SM), IsFirstLine(true), MoreChildren(false), in ASTDumper()
198 OS << "\n"; in ~ASTDumper()
396 OS << "\n"; in indent()
405 OS << "|-"; in indent()
407 OS << "| "; in indent()
411 OS << "`-"; in indent()
413 OS << " "; in indent()
444 OS << ' ' << Ptr; in dumpPointer()
459 OS << "<invalid sloc>"; in dumpLocation()
464 OS << PLoc.getFilename() << ':' << PLoc.getLine() in dumpLocation()
469 OS << "line" << ':' << PLoc.getLine() in dumpLocation()
473 OS << "col" << ':' << PLoc.getColumn(); in dumpLocation()
482 OS << " <"; in dumpSourceRange()
485 OS << ", "; in dumpSourceRange()
488 OS << ">"; in dumpSourceRange()
498 OS << "'" << QualType::getAsString(T_split) << "'"; in dumpBareType()
504 OS << ":'" << QualType::getAsString(D_split) << "'"; in dumpBareType()
509 OS << ' '; in dumpType()
516 OS << D->getDeclKindName(); in dumpBareDeclRef()
522 OS << " '" << ND->getDeclName() << '\''; in dumpBareDeclRef()
535 OS << Label << ' '; in dumpDeclRef()
542 OS << ' ' << ND->getNameAsString(); in dumpName()
568 OS << "<undeserialized declarations>"; in dumpDeclContext()
575 OS << "StoredDeclsMap "; in dumpLookups()
580 OS << " primary"; in dumpLookups()
595 OS << "DeclarationName "; in dumpLookups()
598 OS << '\'' << Name << '\''; in dumpLookups()
607 OS << " hidden"; in dumpLookups()
615 OS << "<undeserialized lookups>"; in dumpLookups()
625 #define ATTR(X) case attr::X: OS << #X; break; in dumpAttr()
629 OS << "Attr"; in dumpAttr()
634 OS << " Inherited"; in dumpAttr()
636 OS << " Implicit"; in dumpAttr()
640 static void dumpPreviousDeclImpl(raw_ostream &OS, ...) {} in dumpPreviousDeclImpl() argument
643 static void dumpPreviousDeclImpl(raw_ostream &OS, const Mergeable<T> *D) { in dumpPreviousDeclImpl() argument
646 OS << " first " << First; in dumpPreviousDeclImpl()
650 static void dumpPreviousDeclImpl(raw_ostream &OS, const Redeclarable<T> *D) { in dumpPreviousDeclImpl() argument
653 OS << " prev " << Prev; in dumpPreviousDeclImpl()
658 static void dumpPreviousDecl(raw_ostream &OS, const Decl *D) { in dumpPreviousDecl() argument
662 return dumpPreviousDeclImpl(OS, cast<DERIVED##Decl>(D)); in dumpPreviousDecl()
678 OS << "public"; in dumpAccessSpecifier()
681 OS << "protected"; in dumpAccessSpecifier()
684 OS << "private"; in dumpAccessSpecifier()
691 OS << "CXXCtorInitializer"; in dumpCXXCtorInitializer()
693 OS << ' '; in dumpCXXCtorInitializer()
730 OS << "TemplateArgument"; in dumpTemplateArgument()
736 OS << " null"; in dumpTemplateArgument()
739 OS << " type"; in dumpTemplateArgument()
744 OS << " decl"; in dumpTemplateArgument()
749 OS << " nullptr"; in dumpTemplateArgument()
752 OS << " integral " << A.getAsIntegral(); in dumpTemplateArgument()
755 OS << " template "; in dumpTemplateArgument()
756 A.getAsTemplate().dump(OS); in dumpTemplateArgument()
759 OS << " template expansion"; in dumpTemplateArgument()
760 A.getAsTemplateOrTemplatePattern().dump(OS); in dumpTemplateArgument()
763 OS << " expr"; in dumpTemplateArgument()
768 OS << " pack"; in dumpTemplateArgument()
788 OS << "<<<NULL>>>"; in dumpDecl()
794 OS << D->getDeclKindName() << "Decl"; in dumpDecl()
798 OS << " parent " << cast<Decl>(D->getDeclContext()); in dumpDecl()
799 dumpPreviousDecl(OS, D); in dumpDecl()
801 OS << ' '; in dumpDecl()
804 OS << " in " << M->getFullModuleName(); in dumpDecl()
807 OS << " hidden"; in dumpDecl()
809 OS << " implicit"; in dumpDecl()
811 OS << " used"; in dumpDecl()
813 OS << " referenced"; in dumpDecl()
815 OS << " invalid"; in dumpDecl()
852 OS << " __module_private__"; in VisitTypedefDecl()
858 OS << " class"; in VisitEnumDecl()
860 OS << " struct"; in VisitEnumDecl()
864 OS << " __module_private__"; in VisitEnumDecl()
870 OS << ' ' << D->getKindName(); in VisitRecordDecl()
873 OS << " __module_private__"; in VisitRecordDecl()
875 OS << " definition"; in VisitRecordDecl()
902 OS << ' ' << VarDecl::getStorageClassSpecifierString(SC); in VisitFunctionDecl()
904 OS << " inline"; in VisitFunctionDecl()
906 OS << " virtual"; in VisitFunctionDecl()
908 OS << " __module_private__"; in VisitFunctionDecl()
911 OS << " pure"; in VisitFunctionDecl()
913 OS << " delete"; in VisitFunctionDecl()
920 OS << " noexcept-unevaluated " << EPI.ExceptionSpecDecl; in VisitFunctionDecl()
923 OS << " noexcept-uninstantiated " << EPI.ExceptionSpecTemplate; in VisitFunctionDecl()
990 OS << " mutable"; in VisitFieldDecl()
992 OS << " __module_private__"; in VisitFieldDecl()
1016 OS << ' ' << VarDecl::getStorageClassSpecifierString(SC); in VisitVarDecl()
1019 case VarDecl::TLS_Static: OS << " tls"; break; in VisitVarDecl()
1020 case VarDecl::TLS_Dynamic: OS << " tls_dynamic"; break; in VisitVarDecl()
1023 OS << " __module_private__"; in VisitVarDecl()
1025 OS << " nrvo"; in VisitVarDecl()
1038 OS << ' ' << D->getImportedModule()->getFullModuleName(); in VisitImportDecl()
1048 OS << " inline"; in VisitNamespaceDecl()
1054 OS << ' '; in VisitUsingDirectiveDecl()
1082 OS << "virtual "; in VisitCXXRecordDecl()
1086 OS << "..."; in VisitCXXRecordDecl()
1198 OS << " typename"; in VisitTemplateTypeParmDecl()
1200 OS << " class"; in VisitTemplateTypeParmDecl()
1202 OS << " ..."; in VisitTemplateTypeParmDecl()
1213 OS << " ..."; in VisitNonTypeTemplateParmDecl()
1224 OS << " ..."; in VisitTemplateTemplateParmDecl()
1234 OS << ' '; in VisitUsingDecl()
1235 D->getQualifier()->print(OS, D->getASTContext().getPrintingPolicy()); in VisitUsingDecl()
1236 OS << D->getNameAsString(); in VisitUsingDecl()
1241 OS << ' '; in VisitUnresolvedUsingTypenameDecl()
1242 D->getQualifier()->print(OS, D->getASTContext().getPrintingPolicy()); in VisitUnresolvedUsingTypenameDecl()
1243 OS << D->getNameAsString(); in VisitUnresolvedUsingTypenameDecl()
1247 OS << ' '; in VisitUnresolvedUsingValueDecl()
1248 D->getQualifier()->print(OS, D->getASTContext().getPrintingPolicy()); in VisitUnresolvedUsingValueDecl()
1249 OS << D->getNameAsString(); in VisitUnresolvedUsingValueDecl()
1254 OS << ' '; in VisitUsingShadowDecl()
1260 case LinkageSpecDecl::lang_c: OS << " C"; break; in VisitLinkageSpecDecl()
1261 case LinkageSpecDecl::lang_cxx: OS << " C++"; break; in VisitLinkageSpecDecl()
1266 OS << ' '; in VisitAccessSpecDecl()
1286 OS << " synthesize"; in VisitObjCIvarDecl()
1290 OS << " none"; in VisitObjCIvarDecl()
1293 OS << " private"; in VisitObjCIvarDecl()
1296 OS << " protected"; in VisitObjCIvarDecl()
1299 OS << " public"; in VisitObjCIvarDecl()
1302 OS << " package"; in VisitObjCIvarDecl()
1309 OS << " -"; in VisitObjCMethodDecl()
1311 OS << " +"; in VisitObjCMethodDecl()
1337 OS << "..."; in VisitObjCMethodDecl()
1413 OS << " required"; in VisitObjCPropertyDecl()
1415 OS << " optional"; in VisitObjCPropertyDecl()
1420 OS << " readonly"; in VisitObjCPropertyDecl()
1422 OS << " assign"; in VisitObjCPropertyDecl()
1424 OS << " readwrite"; in VisitObjCPropertyDecl()
1426 OS << " retain"; in VisitObjCPropertyDecl()
1428 OS << " copy"; in VisitObjCPropertyDecl()
1430 OS << " nonatomic"; in VisitObjCPropertyDecl()
1432 OS << " atomic"; in VisitObjCPropertyDecl()
1434 OS << " weak"; in VisitObjCPropertyDecl()
1436 OS << " strong"; in VisitObjCPropertyDecl()
1438 OS << " unsafe_unretained"; in VisitObjCPropertyDecl()
1454 OS << " synthesize"; in VisitObjCPropertyImplDecl()
1456 OS << " dynamic"; in VisitObjCPropertyImplDecl()
1468 OS << "..."; in VisitBlockDecl()
1473 OS << "capture this"; in VisitBlockDecl()
1477 OS << "capture"; in VisitBlockDecl()
1479 OS << " byref"; in VisitBlockDecl()
1481 OS << " nested"; in VisitBlockDecl()
1483 OS << ' '; in VisitBlockDecl()
1502 OS << "<<<NULL>>>"; in dumpStmt()
1526 OS << Node->getStmtClassName(); in VisitStmt()
1556 OS << " '" << Node->getName() << "'"; in VisitLabelStmt()
1561 OS << " '" << Node->getLabel()->getName() << "'"; in VisitGotoStmt()
1584 OS << " lvalue"; in VisitExpr()
1587 OS << " xvalue"; in VisitExpr()
1598 OS << " bitfield"; in VisitExpr()
1601 OS << " objcproperty"; in VisitExpr()
1604 OS << " objcsubscript"; in VisitExpr()
1607 OS << " vectorcomponent"; in VisitExpr()
1613 static void dumpBasePath(raw_ostream &OS, const CastExpr *Node) { in dumpBasePath() argument
1617 OS << " ("; in dumpBasePath()
1624 OS << " -> "; in dumpBasePath()
1630 OS << "virtual "; in dumpBasePath()
1631 OS << RD->getName(); in dumpBasePath()
1635 OS << ')'; in dumpBasePath()
1640 OS << " <"; in VisitCastExpr()
1643 OS << Node->getCastKindName(); in VisitCastExpr()
1645 dumpBasePath(OS, Node); in VisitCastExpr()
1646 OS << ">"; in VisitCastExpr()
1652 OS << " "; in VisitDeclRefExpr()
1655 OS << " ("; in VisitDeclRefExpr()
1657 OS << ")"; in VisitDeclRefExpr()
1663 OS << " ("; in VisitUnresolvedLookupExpr()
1665 OS << "no "; in VisitUnresolvedLookupExpr()
1666 OS << "ADL) = '" << Node->getName() << '\''; in VisitUnresolvedLookupExpr()
1671 OS << " empty"; in VisitUnresolvedLookupExpr()
1681 OS << " " << Node->getDecl()->getDeclKindName() << "Decl"; in VisitObjCIvarRefExpr()
1683 OS << "='" << *Node->getDecl() << "'"; in VisitObjCIvarRefExpr()
1686 OS << " isFreeIvar"; in VisitObjCIvarRefExpr()
1693 case PredefinedExpr::Func: OS << " __func__"; break; in VisitPredefinedExpr()
1694 case PredefinedExpr::Function: OS << " __FUNCTION__"; break; in VisitPredefinedExpr()
1695 case PredefinedExpr::FuncDName: OS << " __FUNCDNAME__"; break; in VisitPredefinedExpr()
1696 case PredefinedExpr::LFunction: OS << " L__FUNCTION__"; break; in VisitPredefinedExpr()
1697 case PredefinedExpr::PrettyFunction: OS << " __PRETTY_FUNCTION__";break; in VisitPredefinedExpr()
1698 case PredefinedExpr::FuncSig: OS << " __FUNCSIG__"; break; in VisitPredefinedExpr()
1705 OS << " " << Node->getValue(); in VisitCharacterLiteral()
1713 OS << " " << Node->getValue().toString(10, isSigned); in VisitIntegerLiteral()
1719 OS << " " << Node->getValueAsApproximateDouble(); in VisitFloatingLiteral()
1725 OS << " "; in VisitStringLiteral()
1726 Str->outputString(OS); in VisitStringLiteral()
1735 OS << "array filler"; in VisitInitListExpr()
1740 OS << " field "; in VisitInitListExpr()
1747 OS << " " << (Node->isPostfix() ? "postfix" : "prefix") in VisitUnaryOperator()
1756 OS << " sizeof"; in VisitUnaryExprOrTypeTraitExpr()
1759 OS << " alignof"; in VisitUnaryExprOrTypeTraitExpr()
1762 OS << " vec_step"; in VisitUnaryExprOrTypeTraitExpr()
1771 OS << " " << (Node->isArrow() ? "->" : ".") << *Node->getMemberDecl(); in VisitMemberExpr()
1777 OS << " " << Node->getAccessor().getNameStart(); in VisitExtVectorElementExpr()
1782 OS << " '" << BinaryOperator::getOpcodeStr(Node->getOpcode()) << "'"; in VisitBinaryOperator()
1788 OS << " '" << BinaryOperator::getOpcodeStr(Node->getOpcode()) in VisitCompoundAssignOperator()
1791 OS << " ComputeResultTy="; in VisitCompoundAssignOperator()
1813 OS << " " << Node->getLabel()->getName(); in VisitAddrLabelExpr()
1823 OS << " " << Node->getCastName() in VisitCXXNamedCastExpr()
1826 dumpBasePath(OS, Node); in VisitCXXNamedCastExpr()
1827 OS << ">"; in VisitCXXNamedCastExpr()
1832 OS << " " << (Node->getValue() ? "true" : "false"); in VisitCXXBoolLiteralExpr()
1837 OS << " this"; in VisitCXXThisExpr()
1842 OS << " functional cast to " << Node->getTypeAsWritten().getAsString() in VisitCXXFunctionalCastExpr()
1851 OS << " elidable"; in VisitCXXConstructExpr()
1853 OS << " zeroing"; in VisitCXXConstructExpr()
1858 OS << " "; in VisitCXXBindTemporaryExpr()
1866 OS << " extended by "; in VisitMaterializeTemporaryExpr()
1878 OS << "(CXXTemporary"; in dumpCXXTemporary()
1880 OS << ")"; in dumpCXXTemporary()
1889 OS << " selector="; in VisitObjCMessageExpr()
1890 Node->getSelector().print(OS); in VisitObjCMessageExpr()
1896 OS << " class="; in VisitObjCMessageExpr()
1901 OS << " super (instance)"; in VisitObjCMessageExpr()
1905 OS << " super (class)"; in VisitObjCMessageExpr()
1912 OS << " selector="; in VisitObjCBoxedExpr()
1913 Node->getBoxingMethod()->getSelector().print(OS); in VisitObjCBoxedExpr()
1921 OS << " catch all"; in VisitObjCAtCatchStmt()
1932 OS << " "; in VisitObjCSelectorExpr()
1933 Node->getSelector().print(OS); in VisitObjCSelectorExpr()
1939 OS << ' ' << *Node->getProtocol(); in VisitObjCProtocolExpr()
1945 OS << " Kind=MethodRef Getter=\""; in VisitObjCPropertyRefExpr()
1947 Node->getImplicitPropertyGetter()->getSelector().print(OS); in VisitObjCPropertyRefExpr()
1949 OS << "(null)"; in VisitObjCPropertyRefExpr()
1951 OS << "\" Setter=\""; in VisitObjCPropertyRefExpr()
1953 Setter->getSelector().print(OS); in VisitObjCPropertyRefExpr()
1955 OS << "(null)"; in VisitObjCPropertyRefExpr()
1956 OS << "\""; in VisitObjCPropertyRefExpr()
1958 OS << " Kind=PropertyRef Property=\"" << *Node->getExplicitProperty() <<'"'; in VisitObjCPropertyRefExpr()
1962 OS << " super"; in VisitObjCPropertyRefExpr()
1964 OS << " Messaging="; in VisitObjCPropertyRefExpr()
1966 OS << "Getter&Setter"; in VisitObjCPropertyRefExpr()
1968 OS << "Getter"; in VisitObjCPropertyRefExpr()
1970 OS << "Setter"; in VisitObjCPropertyRefExpr()
1976 OS << " Kind=ArraySubscript GetterForArray=\""; in VisitObjCSubscriptRefExpr()
1978 OS << " Kind=DictionarySubscript GetterForDictionary=\""; in VisitObjCSubscriptRefExpr()
1980 Node->getAtIndexMethodDecl()->getSelector().print(OS); in VisitObjCSubscriptRefExpr()
1982 OS << "(null)"; in VisitObjCSubscriptRefExpr()
1985 OS << "\" SetterForArray=\""; in VisitObjCSubscriptRefExpr()
1987 OS << "\" SetterForDictionary=\""; in VisitObjCSubscriptRefExpr()
1989 Node->setAtIndexMethodDecl()->getSelector().print(OS); in VisitObjCSubscriptRefExpr()
1991 OS << "(null)"; in VisitObjCSubscriptRefExpr()
1996 OS << " " << (Node->getValue() ? "__objc_yes" : "__objc_no"); in VisitObjCBoolLiteralExpr()
2026 OS << "<<<NULL>>>"; in dumpComment()
2032 OS << C->getCommentKindName(); in dumpComment()
2046 OS << " Text=\"" << C->getText() << "\""; in visitTextComment()
2050 OS << " Name=\"" << getCommandName(C->getCommandID()) << "\""; in visitInlineCommandComment()
2053 OS << " RenderNormal"; in visitInlineCommandComment()
2056 OS << " RenderBold"; in visitInlineCommandComment()
2059 OS << " RenderMonospaced"; in visitInlineCommandComment()
2062 OS << " RenderEmphasized"; in visitInlineCommandComment()
2067 OS << " Arg[" << i << "]=\"" << C->getArgText(i) << "\""; in visitInlineCommandComment()
2071 OS << " Name=\"" << C->getTagName() << "\""; in visitHTMLStartTagComment()
2073 OS << " Attrs: "; in visitHTMLStartTagComment()
2076 OS << " \"" << Attr.Name << "=\"" << Attr.Value << "\""; in visitHTMLStartTagComment()
2080 OS << " SelfClosing"; in visitHTMLStartTagComment()
2084 OS << " Name=\"" << C->getTagName() << "\""; in visitHTMLEndTagComment()
2088 OS << " Name=\"" << getCommandName(C->getCommandID()) << "\""; in visitBlockCommandComment()
2090 OS << " Arg[" << i << "]=\"" << C->getArgText(i) << "\""; in visitBlockCommandComment()
2094 OS << " " << ParamCommandComment::getDirectionAsString(C->getDirection()); in visitParamCommandComment()
2097 OS << " explicitly"; in visitParamCommandComment()
2099 OS << " implicitly"; in visitParamCommandComment()
2103 OS << " Param=\"" << C->getParamName(FC) << "\""; in visitParamCommandComment()
2105 OS << " Param=\"" << C->getParamNameAsWritten() << "\""; in visitParamCommandComment()
2109 OS << " ParamIndex=" << C->getParamIndex(); in visitParamCommandComment()
2115 OS << " Param=\"" << C->getParamName(FC) << "\""; in visitTParamCommandComment()
2117 OS << " Param=\"" << C->getParamNameAsWritten() << "\""; in visitTParamCommandComment()
2121 OS << " Position=<"; in visitTParamCommandComment()
2123 OS << C->getIndex(i); in visitTParamCommandComment()
2125 OS << ", "; in visitTParamCommandComment()
2127 OS << ">"; in visitTParamCommandComment()
2132 OS << " Name=\"" << getCommandName(C->getCommandID()) << "\"" in visitVerbatimBlockComment()
2138 OS << " Text=\"" << C->getText() << "\""; in visitVerbatimBlockLineComment()
2142 OS << " Text=\"" << C->getText() << "\""; in visitVerbatimLineComment()
2151 LLVM_DUMP_METHOD void Decl::dump(raw_ostream &OS) const { in dump()
2152 ASTDumper P(OS, &getASTContext().getCommentCommandTraits(), in dump()
2167 LLVM_DUMP_METHOD void DeclContext::dumpLookups(raw_ostream &OS) const { in dumpLookups()
2172 ASTDumper P(OS, &Ctx.getCommentCommandTraits(), &Ctx.getSourceManager()); in dumpLookups()
2184 LLVM_DUMP_METHOD void Stmt::dump(raw_ostream &OS, SourceManager &SM) const { in dump() argument
2185 ASTDumper P(OS, nullptr, &SM); in dump()
2212 void Comment::dump(raw_ostream &OS, const CommandTraits *Traits, in dump() argument
2215 ASTDumper D(OS, Traits, SM); in dump()