Lines Matching defs:TextNodeDumper

1 //===--- TextNodeDumper.cpp - Printing of AST nodes -----------------------===//
13 #include "clang/AST/TextNodeDumper.h"
62 TextNodeDumper::TextNodeDumper(raw_ostream &OS, const ASTContext &Context,
69 TextNodeDumper::TextNodeDumper(raw_ostream &OS, bool ShowColors)
72 void TextNodeDumper::Visit(const comments::Comment *C,
87 ConstCommentVisitor<TextNodeDumper, void,
91 void TextNodeDumper::Visit(const Attr *A) {
111 ConstAttrVisitor<TextNodeDumper>::Visit(A);
114 void TextNodeDumper::Visit(const TemplateArgument &TA, SourceRange R,
123 ConstTemplateArgumentVisitor<TextNodeDumper>::Visit(TA);
126 void TextNodeDumper::Visit(const Stmt *Node) {
185 ConstStmtVisitor<TextNodeDumper>::Visit(Node);
188 void TextNodeDumper::Visit(const Type *T) {
233 TypeVisitor<TextNodeDumper>::Visit(T);
236 void TextNodeDumper::Visit(QualType T) {
244 void TextNodeDumper::Visit(TypeLoc TL) {
262 TypeLocVisitor<TextNodeDumper>::Visit(TL);
265 void TextNodeDumper::Visit(const Decl *D) {
337 ConstDeclVisitor<TextNodeDumper>::Visit(D);
340 void TextNodeDumper::Visit(const CXXCtorInitializer *Init) {
354 void TextNodeDumper::Visit(const BlockDecl::Capture &C) {
366 void TextNodeDumper::Visit(const OMPClause *C) {
384 void TextNodeDumper::Visit(const OpenACCClause *C) {
476 void TextNodeDumper::Visit(const GenericSelectionExpr::ConstAssociation &A) {
489 void TextNodeDumper::Visit(const ConceptReference *R) {
503 void TextNodeDumper::Visit(const concepts::Requirement *R) {
588 void TextNodeDumper::dumpAPValueChildren(
621 void TextNodeDumper::Visit(const APValue &Value, QualType Ty) {
755 void TextNodeDumper::dumpPointer(const void *Ptr) {
760 void TextNodeDumper::dumpLocation(SourceLocation Loc) {
789 void TextNodeDumper::dumpSourceRange(SourceRange R) {
805 void TextNodeDumper::dumpBareType(QualType T, bool Desugar) {
824 void TextNodeDumper::dumpType(QualType T) {
829 void TextNodeDumper::dumpBareDeclRef(const Decl *D) {
851 void TextNodeDumper::dumpName(const NamedDecl *ND) {
858 void TextNodeDumper::dumpAccessSpecifier(AccessSpecifier AS) {
865 void TextNodeDumper::dumpCleanupObject(
882 void clang::TextNodeDumper::dumpTemplateSpecializationKind(
902 void clang::TextNodeDumper::dumpNestedNameSpecifier(const NestedNameSpecifier *NNS) {
942 void TextNodeDumper::dumpDeclRef(const Decl *D, StringRef Label) {
953 void TextNodeDumper::dumpTemplateArgument(const TemplateArgument &TA) {
976 const char *TextNodeDumper::getCommandName(unsigned CommandID) {
986 void TextNodeDumper::printFPOptions(FPOptionsOverride FPO) {
993 void TextNodeDumper::visitTextComment(const comments::TextComment *C,
998 void TextNodeDumper::visitInlineCommandComment(
1023 void TextNodeDumper::visitHTMLStartTagComment(
1037 void TextNodeDumper::visitHTMLEndTagComment(
1042 void TextNodeDumper::visitBlockCommandComment(
1049 void TextNodeDumper::visitParamCommandComment(
1070 void TextNodeDumper::visitTParamCommandComment(
1090 void TextNodeDumper::visitVerbatimBlockComment(
1098 void TextNodeDumper::visitVerbatimBlockLineComment(
1104 void TextNodeDumper::visitVerbatimLineComment(
1109 void TextNodeDumper::VisitNullTemplateArgument(const TemplateArgument &) {
1113 void TextNodeDumper::VisitTypeTemplateArgument(const TemplateArgument &TA) {
1118 void TextNodeDumper::VisitDeclarationTemplateArgument(
1125 void TextNodeDumper::VisitNullPtrTemplateArgument(const TemplateArgument &TA) {
1130 void TextNodeDumper::VisitIntegralTemplateArgument(const TemplateArgument &TA) {
1135 void TextNodeDumper::dumpTemplateName(TemplateName TN, StringRef Label) {
1162 void TextNodeDumper::dumpBareTemplateName(TemplateName TN) {
1215 void TextNodeDumper::VisitTemplateTemplateArgument(const TemplateArgument &TA) {
1221 void TextNodeDumper::VisitTemplateExpansionTemplateArgument(
1228 void TextNodeDumper::VisitExpressionTemplateArgument(
1234 void TextNodeDumper::VisitPackTemplateArgument(const TemplateArgument &TA) {
1264 void TextNodeDumper::VisitIfStmt(const IfStmt *Node) {
1281 void TextNodeDumper::VisitSwitchStmt(const SwitchStmt *Node) {
1288 void TextNodeDumper::VisitWhileStmt(const WhileStmt *Node) {
1293 void TextNodeDumper::VisitLabelStmt(const LabelStmt *Node) {
1299 void TextNodeDumper::VisitGotoStmt(const GotoStmt *Node) {
1304 void TextNodeDumper::VisitCaseStmt(const CaseStmt *Node) {
1309 void clang::TextNodeDumper::VisitReturnStmt(const ReturnStmt *Node) {
1317 void clang::TextNodeDumper::VisitCoawaitExpr(const CoawaitExpr *Node) {
1322 void clang::TextNodeDumper::VisitCoreturnStmt(const CoreturnStmt *Node) {
1327 void TextNodeDumper::VisitConstantExpr(const ConstantExpr *Node) {
1333 void TextNodeDumper::VisitCallExpr(const CallExpr *Node) {
1340 void TextNodeDumper::VisitCXXOperatorCallExpr(const CXXOperatorCallExpr *Node) {
1348 void TextNodeDumper::VisitCastExpr(const CastExpr *Node) {
1360 void TextNodeDumper::VisitImplicitCastExpr(const ImplicitCastExpr *Node) {
1366 void TextNodeDumper::VisitDeclRefExpr(const DeclRefExpr *Node) {
1390 void clang::TextNodeDumper::VisitDependentScopeDeclRefExpr(
1396 void TextNodeDumper::VisitUnresolvedLookupExpr(
1411 void TextNodeDumper::VisitObjCIvarRefExpr(const ObjCIvarRefExpr *Node) {
1422 void TextNodeDumper::VisitSYCLUniqueStableNameExpr(
1427 void TextNodeDumper::VisitPredefinedExpr(const PredefinedExpr *Node) {
1431 void TextNodeDumper::VisitCharacterLiteral(const CharacterLiteral *Node) {
1436 void TextNodeDumper::VisitIntegerLiteral(const IntegerLiteral *Node) {
1442 void TextNodeDumper::VisitFixedPointLiteral(const FixedPointLiteral *Node) {
1447 void TextNodeDumper::VisitFloatingLiteral(const FloatingLiteral *Node) {
1452 void TextNodeDumper::VisitStringLiteral(const StringLiteral *Str) {
1458 void TextNodeDumper::VisitInitListExpr(const InitListExpr *ILE) {
1465 void TextNodeDumper::VisitGenericSelectionExpr(const GenericSelectionExpr *E) {
1470 void TextNodeDumper::VisitUnaryOperator(const UnaryOperator *Node) {
1479 void TextNodeDumper::VisitUnaryExprOrTypeTraitExpr(
1487 void TextNodeDumper::VisitMemberExpr(const MemberExpr *Node) {
1499 void TextNodeDumper::VisitExtVectorElementExpr(
1504 void TextNodeDumper::VisitBinaryOperator(const BinaryOperator *Node) {
1510 void TextNodeDumper::VisitCompoundAssignOperator(
1521 void TextNodeDumper::VisitAddrLabelExpr(const AddrLabelExpr *Node) {
1526 void TextNodeDumper::VisitCXXNamedCastExpr(const CXXNamedCastExpr *Node) {
1534 void TextNodeDumper::VisitCXXBoolLiteralExpr(const CXXBoolLiteralExpr *Node) {
1538 void TextNodeDumper::VisitCXXThisExpr(const CXXThisExpr *Node) {
1546 void TextNodeDumper::VisitCXXFunctionalCastExpr(
1554 void TextNodeDumper::VisitCXXStaticCastExpr(const CXXStaticCastExpr *Node) {
1560 void TextNodeDumper::VisitCXXUnresolvedConstructExpr(
1567 void TextNodeDumper::VisitCXXConstructExpr(const CXXConstructExpr *Node) {
1582 void TextNodeDumper::VisitCXXBindTemporaryExpr(
1589 void TextNodeDumper::VisitCXXNewExpr(const CXXNewExpr *Node) {
1602 void TextNodeDumper::VisitCXXDeleteExpr(const CXXDeleteExpr *Node) {
1613 void TextNodeDumper::VisitTypeTraitExpr(const TypeTraitExpr *Node) {
1617 void TextNodeDumper::VisitArrayTypeTraitExpr(const ArrayTypeTraitExpr *Node) {
1621 void TextNodeDumper::VisitExpressionTraitExpr(const ExpressionTraitExpr *Node) {
1625 void TextNodeDumper::VisitCXXDefaultArgExpr(const CXXDefaultArgExpr *Node) {
1630 void TextNodeDumper::VisitCXXDefaultInitExpr(const CXXDefaultInitExpr *Node) {
1635 void TextNodeDumper::VisitMaterializeTemporaryExpr(
1643 void TextNodeDumper::VisitExprWithCleanups(const ExprWithCleanups *Node) {
1648 void TextNodeDumper::VisitSizeOfPackExpr(const SizeOfPackExpr *Node) {
1653 void TextNodeDumper::VisitCXXDependentScopeMemberExpr(
1658 void TextNodeDumper::VisitObjCMessageExpr(const ObjCMessageExpr *Node) {
1680 void TextNodeDumper::VisitObjCBoxedExpr(const ObjCBoxedExpr *Node) {
1687 void TextNodeDumper::VisitObjCAtCatchStmt(const ObjCAtCatchStmt *Node) {
1692 void TextNodeDumper::VisitObjCEncodeExpr(const ObjCEncodeExpr *Node) {
1696 void TextNodeDumper::VisitObjCSelectorExpr(const ObjCSelectorExpr *Node) {
1701 void TextNodeDumper::VisitObjCProtocolExpr(const ObjCProtocolExpr *Node) {
1705 void TextNodeDumper::VisitObjCPropertyRefExpr(const ObjCPropertyRefExpr *Node) {
1736 void TextNodeDumper::VisitObjCSubscriptRefExpr(
1757 void TextNodeDumper::VisitObjCBoolLiteralExpr(const ObjCBoolLiteralExpr *Node) {
1761 void TextNodeDumper::VisitOMPIteratorExpr(const OMPIteratorExpr *Node) {
1778 void TextNodeDumper::VisitConceptSpecializationExpr(
1784 void TextNodeDumper::VisitRequiresExpr(
1790 void TextNodeDumper::VisitRValueReferenceType(const ReferenceType *T) {
1795 void TextNodeDumper::VisitArrayType(const ArrayType *T) {
1809 void TextNodeDumper::VisitConstantArrayType(const ConstantArrayType *T) {
1814 void TextNodeDumper::VisitVariableArrayType(const VariableArrayType *T) {
1820 void TextNodeDumper::VisitDependentSizedArrayType(
1827 void TextNodeDumper::VisitDependentSizedExtVectorType(
1833 void TextNodeDumper::VisitVectorType(const VectorType *T) {
1868 void TextNodeDumper::VisitFunctionType(const FunctionType *T) {
1879 void TextNodeDumper::VisitFunctionProtoType(const FunctionProtoType *T) {
1963 void TextNodeDumper::VisitUnresolvedUsingType(const UnresolvedUsingType *T) {
1967 void TextNodeDumper::VisitUsingType(const UsingType *T) {
1973 void TextNodeDumper::VisitTypedefType(const TypedefType *T) {
1979 void TextNodeDumper::VisitUnaryTransformType(const UnaryTransformType *T) {
1989 void TextNodeDumper::VisitTagType(const TagType *T) {
1993 void TextNodeDumper::VisitTemplateTypeParmType(const TemplateTypeParmType *T) {
2000 void TextNodeDumper::VisitSubstTemplateTypeParmType(
2008 void TextNodeDumper::VisitSubstTemplateTypeParmPackType(
2014 void TextNodeDumper::VisitAutoType(const AutoType *T) {
2023 void TextNodeDumper::VisitDeducedTemplateSpecializationType(
2028 void TextNodeDumper::VisitTemplateSpecializationType(
2035 void TextNodeDumper::VisitInjectedClassNameType(
2040 void TextNodeDumper::VisitObjCInterfaceType(const ObjCInterfaceType *T) {
2044 void TextNodeDumper::VisitPackExpansionType(const PackExpansionType *T) {
2049 void TextNodeDumper::VisitTypeLoc(TypeLoc TL) {
2051 TypeVisitor<TextNodeDumper>::Visit(TL.getTypePtr());
2056 void TextNodeDumper::VisitLabelDecl(const LabelDecl *D) { dumpName(D); }
2058 void TextNodeDumper::VisitTypedefDecl(const TypedefDecl *D) {
2065 void TextNodeDumper::VisitEnumDecl(const EnumDecl *D) {
2079 void TextNodeDumper::VisitRecordDecl(const RecordDecl *D) {
2088 void TextNodeDumper::VisitEnumConstantDecl(const EnumConstantDecl *D) {
2093 void TextNodeDumper::VisitIndirectFieldDecl(const IndirectFieldDecl *D) {
2101 void TextNodeDumper::VisitFunctionDecl(const FunctionDecl *D) {
2185 void TextNodeDumper::VisitCXXDeductionGuideDecl(
2198 void TextNodeDumper::VisitLifetimeExtendedTemporaryDecl(
2209 void TextNodeDumper::VisitFieldDecl(const FieldDecl *D) {
2218 void TextNodeDumper::VisitVarDecl(const VarDecl *D) {
2280 void TextNodeDumper::VisitBindingDecl(const BindingDecl *D) {
2285 void TextNodeDumper::VisitCapturedDecl(const CapturedDecl *D) {
2290 void TextNodeDumper::VisitImportDecl(const ImportDecl *D) {
2298 void TextNodeDumper::VisitPragmaCommentDecl(const PragmaCommentDecl *D) {
2324 void TextNodeDumper::VisitPragmaDetectMismatchDecl(
2329 void TextNodeDumper::VisitOMPExecutableDirective(
2335 void TextNodeDumper::VisitOMPDeclareReductionDecl(
2357 void TextNodeDumper::VisitOMPRequiresDecl(const OMPRequiresDecl *D) {
2378 void TextNodeDumper::VisitOMPCapturedExprDecl(const OMPCapturedExprDecl *D) {
2383 void TextNodeDumper::VisitNamespaceDecl(const NamespaceDecl *D) {
2393 void TextNodeDumper::VisitUsingDirectiveDecl(const UsingDirectiveDecl *D) {
2398 void TextNodeDumper::VisitNamespaceAliasDecl(const NamespaceAliasDecl *D) {
2403 void TextNodeDumper::VisitTypeAliasDecl(const TypeAliasDecl *D) {
2408 void TextNodeDumper::VisitTypeAliasTemplateDecl(
2413 void TextNodeDumper::VisitCXXRecordDecl(const CXXRecordDecl *D) {
2566 void TextNodeDumper::VisitFunctionTemplateDecl(const FunctionTemplateDecl *D) {
2570 void TextNodeDumper::VisitClassTemplateDecl(const ClassTemplateDecl *D) {
2574 void TextNodeDumper::VisitVarTemplateDecl(const VarTemplateDecl *D) {
2578 void TextNodeDumper::VisitBuiltinTemplateDecl(const BuiltinTemplateDecl *D) {
2582 void TextNodeDumper::VisitTemplateTypeParmDecl(const TemplateTypeParmDecl *D) {
2601 void TextNodeDumper::VisitNonTypeTemplateParmDecl(
2610 void TextNodeDumper::VisitTemplateTemplateParmDecl(
2618 void TextNodeDumper::VisitUsingDecl(const UsingDecl *D) {
2626 void TextNodeDumper::VisitUsingEnumDecl(const UsingEnumDecl *D) {
2631 void TextNodeDumper::VisitUnresolvedUsingTypenameDecl(
2639 void TextNodeDumper::VisitUnresolvedUsingValueDecl(
2648 void TextNodeDumper::VisitUsingShadowDecl(const UsingShadowDecl *D) {
2653 void TextNodeDumper::VisitConstructorUsingShadowDecl(
2678 void TextNodeDumper::VisitLinkageSpecDecl(const LinkageSpecDecl *D) {
2689 void TextNodeDumper::VisitAccessSpecDecl(const AccessSpecDecl *D) {
2694 void TextNodeDumper::VisitFriendDecl(const FriendDecl *D) {
2699 void TextNodeDumper::VisitObjCIvarDecl(const ObjCIvarDecl *D) {
2724 void TextNodeDumper::VisitObjCMethodDecl(const ObjCMethodDecl *D) {
2736 void TextNodeDumper::VisitObjCTypeParamDecl(const ObjCTypeParamDecl *D) {
2756 void TextNodeDumper::VisitObjCCategoryDecl(const ObjCCategoryDecl *D) {
2764 void TextNodeDumper::VisitObjCCategoryImplDecl(const ObjCCategoryImplDecl *D) {
2770 void TextNodeDumper::VisitObjCProtocolDecl(const ObjCProtocolDecl *D) {
2777 void TextNodeDumper::VisitObjCInterfaceDecl(const ObjCInterfaceDecl *D) {
2786 void TextNodeDumper::VisitObjCImplementationDecl(
2793 void TextNodeDumper::VisitObjCCompatibleAliasDecl(
2799 void TextNodeDumper::VisitObjCPropertyDecl(const ObjCPropertyDecl *D) {
2841 void TextNodeDumper::VisitObjCPropertyImplDecl(const ObjCPropertyImplDecl *D) {
2851 void TextNodeDumper::VisitBlockDecl(const BlockDecl *D) {
2859 void TextNodeDumper::VisitConceptDecl(const ConceptDecl *D) {
2863 void TextNodeDumper::VisitCompoundStmt(const CompoundStmt *S) {
2869 void TextNodeDumper::VisitHLSLBufferDecl(const HLSLBufferDecl *D) {
2877 void TextNodeDumper::VisitOpenACCConstructStmt(const OpenACCConstructStmt *S) {
2880 void TextNodeDumper::VisitOpenACCLoopConstruct(const OpenACCLoopConstruct *S) {
2888 void TextNodeDumper::VisitEmbedExpr(const EmbedExpr *S) {