Lines Matching refs:TextNodeDumper

1 //===--- TextNodeDumper.cpp - Printing of AST nodes -----------------------===//
13 #include "clang/AST/TextNodeDumper.h"
59 TextNodeDumper::TextNodeDumper(raw_ostream &OS, const ASTContext &Context,
66 TextNodeDumper::TextNodeDumper(raw_ostream &OS, bool ShowColors)
69 void TextNodeDumper::Visit(const comments::Comment *C,
84 ConstCommentVisitor<TextNodeDumper, void,
88 void TextNodeDumper::Visit(const Attr *A) {
108 ConstAttrVisitor<TextNodeDumper>::Visit(A);
111 void TextNodeDumper::Visit(const TemplateArgument &TA, SourceRange R,
120 ConstTemplateArgumentVisitor<TextNodeDumper>::Visit(TA);
123 void TextNodeDumper::Visit(const Stmt *Node) {
182 ConstStmtVisitor<TextNodeDumper>::Visit(Node);
185 void TextNodeDumper::Visit(const Type *T) {
230 TypeVisitor<TextNodeDumper>::Visit(T);
233 void TextNodeDumper::Visit(QualType T) {
241 void TextNodeDumper::Visit(const Decl *D) {
298 ConstDeclVisitor<TextNodeDumper>::Visit(D);
301 void TextNodeDumper::Visit(const CXXCtorInitializer *Init) {
315 void TextNodeDumper::Visit(const BlockDecl::Capture &C) {
327 void TextNodeDumper::Visit(const OMPClause *C) {
345 void TextNodeDumper::Visit(const GenericSelectionExpr::ConstAssociation &A) {
403 void TextNodeDumper::dumpAPValueChildren(
436 void TextNodeDumper::Visit(const APValue &Value, QualType Ty) {
570 void TextNodeDumper::dumpPointer(const void *Ptr) {
575 void TextNodeDumper::dumpLocation(SourceLocation Loc) {
604 void TextNodeDumper::dumpSourceRange(SourceRange R) {
620 void TextNodeDumper::dumpBareType(QualType T, bool Desugar) {
634 void TextNodeDumper::dumpType(QualType T) {
639 void TextNodeDumper::dumpBareDeclRef(const Decl *D) {
661 void TextNodeDumper::dumpName(const NamedDecl *ND) {
668 void TextNodeDumper::dumpAccessSpecifier(AccessSpecifier AS) {
675 void TextNodeDumper::dumpCleanupObject(
692 void TextNodeDumper::dumpDeclRef(const Decl *D, StringRef Label) {
703 const char *TextNodeDumper::getCommandName(unsigned CommandID) {
713 void TextNodeDumper::printFPOptions(FPOptionsOverride FPO) {
720 void TextNodeDumper::visitTextComment(const comments::TextComment *C,
725 void TextNodeDumper::visitInlineCommandComment(
750 void TextNodeDumper::visitHTMLStartTagComment(
764 void TextNodeDumper::visitHTMLEndTagComment(
769 void TextNodeDumper::visitBlockCommandComment(
776 void TextNodeDumper::visitParamCommandComment(
797 void TextNodeDumper::visitTParamCommandComment(
817 void TextNodeDumper::visitVerbatimBlockComment(
825 void TextNodeDumper::visitVerbatimBlockLineComment(
831 void TextNodeDumper::visitVerbatimLineComment(
836 void TextNodeDumper::VisitNullTemplateArgument(const TemplateArgument &) {
840 void TextNodeDumper::VisitTypeTemplateArgument(const TemplateArgument &TA) {
845 void TextNodeDumper::VisitDeclarationTemplateArgument(
851 void TextNodeDumper::VisitNullPtrTemplateArgument(const TemplateArgument &) {
855 void TextNodeDumper::VisitIntegralTemplateArgument(const TemplateArgument &TA) {
859 void TextNodeDumper::VisitTemplateTemplateArgument(const TemplateArgument &TA) {
864 void TextNodeDumper::VisitTemplateExpansionTemplateArgument(
870 void TextNodeDumper::VisitExpressionTemplateArgument(const TemplateArgument &) {
874 void TextNodeDumper::VisitPackTemplateArgument(const TemplateArgument &) {
903 void TextNodeDumper::VisitIfStmt(const IfStmt *Node) {
912 void TextNodeDumper::VisitSwitchStmt(const SwitchStmt *Node) {
919 void TextNodeDumper::VisitWhileStmt(const WhileStmt *Node) {
924 void TextNodeDumper::VisitLabelStmt(const LabelStmt *Node) {
930 void TextNodeDumper::VisitGotoStmt(const GotoStmt *Node) {
935 void TextNodeDumper::VisitCaseStmt(const CaseStmt *Node) {
940 void TextNodeDumper::VisitConstantExpr(const ConstantExpr *Node) {
946 void TextNodeDumper::VisitCallExpr(const CallExpr *Node) {
953 void TextNodeDumper::VisitCXXOperatorCallExpr(const CXXOperatorCallExpr *Node) {
961 void TextNodeDumper::VisitCastExpr(const CastExpr *Node) {
973 void TextNodeDumper::VisitImplicitCastExpr(const ImplicitCastExpr *Node) {
979 void TextNodeDumper::VisitDeclRefExpr(const DeclRefExpr *Node) {
995 void TextNodeDumper::VisitUnresolvedLookupExpr(
1010 void TextNodeDumper::VisitObjCIvarRefExpr(const ObjCIvarRefExpr *Node) {
1021 void TextNodeDumper::VisitPredefinedExpr(const PredefinedExpr *Node) {
1025 void TextNodeDumper::VisitCharacterLiteral(const CharacterLiteral *Node) {
1030 void TextNodeDumper::VisitIntegerLiteral(const IntegerLiteral *Node) {
1036 void TextNodeDumper::VisitFixedPointLiteral(const FixedPointLiteral *Node) {
1041 void TextNodeDumper::VisitFloatingLiteral(const FloatingLiteral *Node) {
1046 void TextNodeDumper::VisitStringLiteral(const StringLiteral *Str) {
1052 void TextNodeDumper::VisitInitListExpr(const InitListExpr *ILE) {
1059 void TextNodeDumper::VisitGenericSelectionExpr(const GenericSelectionExpr *E) {
1064 void TextNodeDumper::VisitUnaryOperator(const UnaryOperator *Node) {
1073 void TextNodeDumper::VisitUnaryExprOrTypeTraitExpr(
1081 void TextNodeDumper::VisitMemberExpr(const MemberExpr *Node) {
1092 void TextNodeDumper::VisitExtVectorElementExpr(
1097 void TextNodeDumper::VisitBinaryOperator(const BinaryOperator *Node) {
1103 void TextNodeDumper::VisitCompoundAssignOperator(
1114 void TextNodeDumper::VisitAddrLabelExpr(const AddrLabelExpr *Node) {
1119 void TextNodeDumper::VisitCXXNamedCastExpr(const CXXNamedCastExpr *Node) {
1127 void TextNodeDumper::VisitCXXBoolLiteralExpr(const CXXBoolLiteralExpr *Node) {
1131 void TextNodeDumper::VisitCXXThisExpr(const CXXThisExpr *Node) {
1137 void TextNodeDumper::VisitCXXFunctionalCastExpr(
1145 void TextNodeDumper::VisitCXXStaticCastExpr(const CXXStaticCastExpr *Node) {
1151 void TextNodeDumper::VisitCXXUnresolvedConstructExpr(
1158 void TextNodeDumper::VisitCXXConstructExpr(const CXXConstructExpr *Node) {
1171 void TextNodeDumper::VisitCXXBindTemporaryExpr(
1178 void TextNodeDumper::VisitCXXNewExpr(const CXXNewExpr *Node) {
1191 void TextNodeDumper::VisitCXXDeleteExpr(const CXXDeleteExpr *Node) {
1202 void TextNodeDumper::VisitTypeTraitExpr(const TypeTraitExpr *Node) {
1206 void TextNodeDumper::VisitArrayTypeTraitExpr(const ArrayTypeTraitExpr *Node) {
1210 void TextNodeDumper::VisitExpressionTraitExpr(const ExpressionTraitExpr *Node) {
1214 void TextNodeDumper::VisitMaterializeTemporaryExpr(
1222 void TextNodeDumper::VisitExprWithCleanups(const ExprWithCleanups *Node) {
1227 void TextNodeDumper::VisitSizeOfPackExpr(const SizeOfPackExpr *Node) {
1232 void TextNodeDumper::VisitCXXDependentScopeMemberExpr(
1237 void TextNodeDumper::VisitObjCMessageExpr(const ObjCMessageExpr *Node) {
1259 void TextNodeDumper::VisitObjCBoxedExpr(const ObjCBoxedExpr *Node) {
1266 void TextNodeDumper::VisitObjCAtCatchStmt(const ObjCAtCatchStmt *Node) {
1271 void TextNodeDumper::VisitObjCEncodeExpr(const ObjCEncodeExpr *Node) {
1275 void TextNodeDumper::VisitObjCSelectorExpr(const ObjCSelectorExpr *Node) {
1280 void TextNodeDumper::VisitObjCProtocolExpr(const ObjCProtocolExpr *Node) {
1284 void TextNodeDumper::VisitObjCPropertyRefExpr(const ObjCPropertyRefExpr *Node) {
1315 void TextNodeDumper::VisitObjCSubscriptRefExpr(
1336 void TextNodeDumper::VisitObjCBoolLiteralExpr(const ObjCBoolLiteralExpr *Node) {
1340 void TextNodeDumper::VisitOMPIteratorExpr(const OMPIteratorExpr *Node) {
1357 void TextNodeDumper::VisitConceptSpecializationExpr(
1363 void TextNodeDumper::VisitRValueReferenceType(const ReferenceType *T) {
1368 void TextNodeDumper::VisitArrayType(const ArrayType *T) {
1382 void TextNodeDumper::VisitConstantArrayType(const ConstantArrayType *T) {
1387 void TextNodeDumper::VisitVariableArrayType(const VariableArrayType *T) {
1393 void TextNodeDumper::VisitDependentSizedArrayType(
1400 void TextNodeDumper::VisitDependentSizedExtVectorType(
1406 void TextNodeDumper::VisitVectorType(const VectorType *T) {
1435 void TextNodeDumper::VisitFunctionType(const FunctionType *T) {
1446 void TextNodeDumper::VisitFunctionProtoType(const FunctionProtoType *T) {
1473 void TextNodeDumper::VisitUnresolvedUsingType(const UnresolvedUsingType *T) {
1477 void TextNodeDumper::VisitTypedefType(const TypedefType *T) {
1481 void TextNodeDumper::VisitUnaryTransformType(const UnaryTransformType *T) {
1489 void TextNodeDumper::VisitTagType(const TagType *T) {
1493 void TextNodeDumper::VisitTemplateTypeParmType(const TemplateTypeParmType *T) {
1500 void TextNodeDumper::VisitAutoType(const AutoType *T) {
1512 void TextNodeDumper::VisitTemplateSpecializationType(
1520 void TextNodeDumper::VisitInjectedClassNameType(
1525 void TextNodeDumper::VisitObjCInterfaceType(const ObjCInterfaceType *T) {
1529 void TextNodeDumper::VisitPackExpansionType(const PackExpansionType *T) {
1534 void TextNodeDumper::VisitLabelDecl(const LabelDecl *D) { dumpName(D); }
1536 void TextNodeDumper::VisitTypedefDecl(const TypedefDecl *D) {
1543 void TextNodeDumper::VisitEnumDecl(const EnumDecl *D) {
1557 void TextNodeDumper::VisitRecordDecl(const RecordDecl *D) {
1566 void TextNodeDumper::VisitEnumConstantDecl(const EnumConstantDecl *D) {
1571 void TextNodeDumper::VisitIndirectFieldDecl(const IndirectFieldDecl *D) {
1579 void TextNodeDumper::VisitFunctionDecl(const FunctionDecl *D) {
1649 void TextNodeDumper::VisitLifetimeExtendedTemporaryDecl(
1660 void TextNodeDumper::VisitFieldDecl(const FieldDecl *D) {
1669 void TextNodeDumper::VisitVarDecl(const VarDecl *D) {
1722 void TextNodeDumper::VisitBindingDecl(const BindingDecl *D) {
1727 void TextNodeDumper::VisitCapturedDecl(const CapturedDecl *D) {
1732 void TextNodeDumper::VisitImportDecl(const ImportDecl *D) {
1740 void TextNodeDumper::VisitPragmaCommentDecl(const PragmaCommentDecl *D) {
1766 void TextNodeDumper::VisitPragmaDetectMismatchDecl(
1771 void TextNodeDumper::VisitOMPExecutableDirective(
1777 void TextNodeDumper::VisitOMPDeclareReductionDecl(
1799 void TextNodeDumper::VisitOMPRequiresDecl(const OMPRequiresDecl *D) {
1820 void TextNodeDumper::VisitOMPCapturedExprDecl(const OMPCapturedExprDecl *D) {
1825 void TextNodeDumper::VisitNamespaceDecl(const NamespaceDecl *D) {
1833 void TextNodeDumper::VisitUsingDirectiveDecl(const UsingDirectiveDecl *D) {
1838 void TextNodeDumper::VisitNamespaceAliasDecl(const NamespaceAliasDecl *D) {
1843 void TextNodeDumper::VisitTypeAliasDecl(const TypeAliasDecl *D) {
1848 void TextNodeDumper::VisitTypeAliasTemplateDecl(
1853 void TextNodeDumper::VisitCXXRecordDecl(const CXXRecordDecl *D) {
1997 void TextNodeDumper::VisitFunctionTemplateDecl(const FunctionTemplateDecl *D) {
2001 void TextNodeDumper::VisitClassTemplateDecl(const ClassTemplateDecl *D) {
2005 void TextNodeDumper::VisitVarTemplateDecl(const VarTemplateDecl *D) {
2009 void TextNodeDumper::VisitBuiltinTemplateDecl(const BuiltinTemplateDecl *D) {
2013 void TextNodeDumper::VisitTemplateTypeParmDecl(const TemplateTypeParmDecl *D) {
2032 void TextNodeDumper::VisitNonTypeTemplateParmDecl(
2041 void TextNodeDumper::VisitTemplateTemplateParmDecl(
2049 void TextNodeDumper::VisitUsingDecl(const UsingDecl *D) {
2056 void TextNodeDumper::VisitUnresolvedUsingTypenameDecl(
2064 void TextNodeDumper::VisitUnresolvedUsingValueDecl(
2073 void TextNodeDumper::VisitUsingShadowDecl(const UsingShadowDecl *D) {
2078 void TextNodeDumper::VisitConstructorUsingShadowDecl(
2103 void TextNodeDumper::VisitLinkageSpecDecl(const LinkageSpecDecl *D) {
2114 void TextNodeDumper::VisitAccessSpecDecl(const AccessSpecDecl *D) {
2119 void TextNodeDumper::VisitFriendDecl(const FriendDecl *D) {
2124 void TextNodeDumper::VisitObjCIvarDecl(const ObjCIvarDecl *D) {
2149 void TextNodeDumper::VisitObjCMethodDecl(const ObjCMethodDecl *D) {
2161 void TextNodeDumper::VisitObjCTypeParamDecl(const ObjCTypeParamDecl *D) {
2181 void TextNodeDumper::VisitObjCCategoryDecl(const ObjCCategoryDecl *D) {
2189 void TextNodeDumper::VisitObjCCategoryImplDecl(const ObjCCategoryImplDecl *D) {
2195 void TextNodeDumper::VisitObjCProtocolDecl(const ObjCProtocolDecl *D) {
2202 void TextNodeDumper::VisitObjCInterfaceDecl(const ObjCInterfaceDecl *D) {
2211 void TextNodeDumper::VisitObjCImplementationDecl(
2218 void TextNodeDumper::VisitObjCCompatibleAliasDecl(
2224 void TextNodeDumper::VisitObjCPropertyDecl(const ObjCPropertyDecl *D) {
2266 void TextNodeDumper::VisitObjCPropertyImplDecl(const ObjCPropertyImplDecl *D) {
2276 void TextNodeDumper::VisitBlockDecl(const BlockDecl *D) {
2284 void TextNodeDumper::VisitConceptDecl(const ConceptDecl *D) {