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::VisitOpenACCAsteriskSizeExpr(
389 void TextNodeDumper::Visit(const OpenACCClause *C) {
510 void TextNodeDumper::Visit(const GenericSelectionExpr::ConstAssociation &A) {
523 void TextNodeDumper::Visit(const ConceptReference *R) {
537 void TextNodeDumper::Visit(const concepts::Requirement *R) {
622 void TextNodeDumper::dumpAPValueChildren(
655 void TextNodeDumper::Visit(const APValue &Value, QualType Ty) {
815 void TextNodeDumper::dumpPointer(const void *Ptr) {
820 void TextNodeDumper::dumpLocation(SourceLocation Loc) {
849 void TextNodeDumper::dumpSourceRange(SourceRange R) {
865 void TextNodeDumper::dumpBareType(QualType T, bool Desugar) {
884 void TextNodeDumper::dumpType(QualType T) {
889 void TextNodeDumper::dumpBareDeclRef(const Decl *D) {
945 void TextNodeDumper::dumpName(const NamedDecl *ND) {
952 void TextNodeDumper::dumpAccessSpecifier(AccessSpecifier AS) {
959 void TextNodeDumper::dumpCleanupObject(
976 void clang::TextNodeDumper::dumpTemplateSpecializationKind(
996 void clang::TextNodeDumper::dumpNestedNameSpecifier(const NestedNameSpecifier *NNS) {
1036 void TextNodeDumper::dumpDeclRef(const Decl *D, StringRef Label) {
1047 void TextNodeDumper::dumpTemplateArgument(const TemplateArgument &TA) {
1070 const char *TextNodeDumper::getCommandName(unsigned CommandID) {
1080 void TextNodeDumper::printFPOptions(FPOptionsOverride FPO) {
1087 void TextNodeDumper::visitTextComment(const comments::TextComment *C,
1092 void TextNodeDumper::visitInlineCommandComment(
1117 void TextNodeDumper::visitHTMLStartTagComment(
1131 void TextNodeDumper::visitHTMLEndTagComment(
1136 void TextNodeDumper::visitBlockCommandComment(
1143 void TextNodeDumper::visitParamCommandComment(
1164 void TextNodeDumper::visitTParamCommandComment(
1184 void TextNodeDumper::visitVerbatimBlockComment(
1192 void TextNodeDumper::visitVerbatimBlockLineComment(
1198 void TextNodeDumper::visitVerbatimLineComment(
1203 void TextNodeDumper::VisitNullTemplateArgument(const TemplateArgument &) {
1207 void TextNodeDumper::VisitTypeTemplateArgument(const TemplateArgument &TA) {
1212 void TextNodeDumper::VisitDeclarationTemplateArgument(
1219 void TextNodeDumper::VisitNullPtrTemplateArgument(const TemplateArgument &TA) {
1224 void TextNodeDumper::VisitIntegralTemplateArgument(const TemplateArgument &TA) {
1229 void TextNodeDumper::dumpTemplateName(TemplateName TN, StringRef Label) {
1256 void TextNodeDumper::dumpBareTemplateName(TemplateName TN) {
1321 void TextNodeDumper::VisitTemplateTemplateArgument(const TemplateArgument &TA) {
1327 void TextNodeDumper::VisitTemplateExpansionTemplateArgument(
1334 void TextNodeDumper::VisitExpressionTemplateArgument(
1340 void TextNodeDumper::VisitPackTemplateArgument(const TemplateArgument &TA) {
1370 void TextNodeDumper::VisitIfStmt(const IfStmt *Node) {
1387 void TextNodeDumper::VisitSwitchStmt(const SwitchStmt *Node) {
1394 void TextNodeDumper::VisitWhileStmt(const WhileStmt *Node) {
1399 void TextNodeDumper::VisitLabelStmt(const LabelStmt *Node) {
1405 void TextNodeDumper::VisitGotoStmt(const GotoStmt *Node) {
1410 void TextNodeDumper::VisitCaseStmt(const CaseStmt *Node) {
1415 void clang::TextNodeDumper::VisitReturnStmt(const ReturnStmt *Node) {
1423 void clang::TextNodeDumper::VisitCoawaitExpr(const CoawaitExpr *Node) {
1428 void clang::TextNodeDumper::VisitCoreturnStmt(const CoreturnStmt *Node) {
1433 void TextNodeDumper::VisitConstantExpr(const ConstantExpr *Node) {
1439 void TextNodeDumper::VisitCallExpr(const CallExpr *Node) {
1446 void TextNodeDumper::VisitCXXOperatorCallExpr(const CXXOperatorCallExpr *Node) {
1454 void TextNodeDumper::VisitCastExpr(const CastExpr *Node) {
1466 void TextNodeDumper::VisitImplicitCastExpr(const ImplicitCastExpr *Node) {
1472 void TextNodeDumper::VisitDeclRefExpr(const DeclRefExpr *Node) {
1496 void clang::TextNodeDumper::VisitDependentScopeDeclRefExpr(
1502 void TextNodeDumper::VisitUnresolvedLookupExpr(
1517 void TextNodeDumper::VisitObjCIvarRefExpr(const ObjCIvarRefExpr *Node) {
1528 void TextNodeDumper::VisitSYCLUniqueStableNameExpr(
1533 void TextNodeDumper::VisitPredefinedExpr(const PredefinedExpr *Node) {
1537 void TextNodeDumper::VisitCharacterLiteral(const CharacterLiteral *Node) {
1542 void TextNodeDumper::VisitIntegerLiteral(const IntegerLiteral *Node) {
1548 void TextNodeDumper::VisitFixedPointLiteral(const FixedPointLiteral *Node) {
1553 void TextNodeDumper::VisitFloatingLiteral(const FloatingLiteral *Node) {
1558 void TextNodeDumper::VisitStringLiteral(const StringLiteral *Str) {
1564 void TextNodeDumper::VisitInitListExpr(const InitListExpr *ILE) {
1571 void TextNodeDumper::VisitGenericSelectionExpr(const GenericSelectionExpr *E) {
1576 void TextNodeDumper::VisitUnaryOperator(const UnaryOperator *Node) {
1585 void TextNodeDumper::VisitUnaryExprOrTypeTraitExpr(
1593 void TextNodeDumper::VisitMemberExpr(const MemberExpr *Node) {
1605 void TextNodeDumper::VisitExtVectorElementExpr(
1610 void TextNodeDumper::VisitBinaryOperator(const BinaryOperator *Node) {
1616 void TextNodeDumper::VisitCompoundAssignOperator(
1627 void TextNodeDumper::VisitAddrLabelExpr(const AddrLabelExpr *Node) {
1632 void TextNodeDumper::VisitCXXNamedCastExpr(const CXXNamedCastExpr *Node) {
1640 void TextNodeDumper::VisitCXXBoolLiteralExpr(const CXXBoolLiteralExpr *Node) {
1644 void TextNodeDumper::VisitCXXThisExpr(const CXXThisExpr *Node) {
1652 void TextNodeDumper::VisitCXXFunctionalCastExpr(
1660 void TextNodeDumper::VisitCXXStaticCastExpr(const CXXStaticCastExpr *Node) {
1666 void TextNodeDumper::VisitCXXUnresolvedConstructExpr(
1673 void TextNodeDumper::VisitCXXConstructExpr(const CXXConstructExpr *Node) {
1688 void TextNodeDumper::VisitCXXBindTemporaryExpr(
1695 void TextNodeDumper::VisitCXXNewExpr(const CXXNewExpr *Node) {
1708 void TextNodeDumper::VisitCXXDeleteExpr(const CXXDeleteExpr *Node) {
1719 void TextNodeDumper::VisitTypeTraitExpr(const TypeTraitExpr *Node) {
1723 void TextNodeDumper::VisitArrayTypeTraitExpr(const ArrayTypeTraitExpr *Node) {
1727 void TextNodeDumper::VisitExpressionTraitExpr(const ExpressionTraitExpr *Node) {
1731 void TextNodeDumper::VisitCXXDefaultArgExpr(const CXXDefaultArgExpr *Node) {
1736 void TextNodeDumper::VisitCXXDefaultInitExpr(const CXXDefaultInitExpr *Node) {
1741 void TextNodeDumper::VisitMaterializeTemporaryExpr(
1749 void TextNodeDumper::VisitExprWithCleanups(const ExprWithCleanups *Node) {
1754 void TextNodeDumper::VisitSizeOfPackExpr(const SizeOfPackExpr *Node) {
1759 void TextNodeDumper::VisitCXXDependentScopeMemberExpr(
1764 void TextNodeDumper::VisitObjCMessageExpr(const ObjCMessageExpr *Node) {
1786 void TextNodeDumper::VisitObjCBoxedExpr(const ObjCBoxedExpr *Node) {
1793 void TextNodeDumper::VisitObjCAtCatchStmt(const ObjCAtCatchStmt *Node) {
1798 void TextNodeDumper::VisitObjCEncodeExpr(const ObjCEncodeExpr *Node) {
1802 void TextNodeDumper::VisitObjCSelectorExpr(const ObjCSelectorExpr *Node) {
1807 void TextNodeDumper::VisitObjCProtocolExpr(const ObjCProtocolExpr *Node) {
1811 void TextNodeDumper::VisitObjCPropertyRefExpr(const ObjCPropertyRefExpr *Node) {
1842 void TextNodeDumper::VisitObjCSubscriptRefExpr(
1863 void TextNodeDumper::VisitObjCBoolLiteralExpr(const ObjCBoolLiteralExpr *Node) {
1867 void TextNodeDumper::VisitOMPIteratorExpr(const OMPIteratorExpr *Node) {
1884 void TextNodeDumper::VisitConceptSpecializationExpr(
1890 void TextNodeDumper::VisitRequiresExpr(
1896 void TextNodeDumper::VisitRValueReferenceType(const ReferenceType *T) {
1901 void TextNodeDumper::VisitArrayType(const ArrayType *T) {
1915 void TextNodeDumper::VisitConstantArrayType(const ConstantArrayType *T) {
1920 void TextNodeDumper::VisitVariableArrayType(const VariableArrayType *T) {
1926 void TextNodeDumper::VisitDependentSizedArrayType(
1933 void TextNodeDumper::VisitDependentSizedExtVectorType(
1939 void TextNodeDumper::VisitVectorType(const VectorType *T) {
1977 void TextNodeDumper::VisitFunctionType(const FunctionType *T) {
1988 void TextNodeDumper::VisitFunctionProtoType(const FunctionProtoType *T) {
2072 void TextNodeDumper::VisitUnresolvedUsingType(const UnresolvedUsingType *T) {
2076 void TextNodeDumper::VisitUsingType(const UsingType *T) {
2082 void TextNodeDumper::VisitTypedefType(const TypedefType *T) {
2088 void TextNodeDumper::VisitUnaryTransformType(const UnaryTransformType *T) {
2098 void TextNodeDumper::VisitTagType(const TagType *T) {
2102 void TextNodeDumper::VisitTemplateTypeParmType(const TemplateTypeParmType *T) {
2109 void TextNodeDumper::VisitSubstTemplateTypeParmType(
2117 void TextNodeDumper::VisitSubstTemplateTypeParmPackType(
2123 void TextNodeDumper::VisitAutoType(const AutoType *T) {
2132 void TextNodeDumper::VisitDeducedTemplateSpecializationType(
2137 void TextNodeDumper::VisitTemplateSpecializationType(
2144 void TextNodeDumper::VisitInjectedClassNameType(
2149 void TextNodeDumper::VisitObjCInterfaceType(const ObjCInterfaceType *T) {
2153 void TextNodeDumper::VisitPackExpansionType(const PackExpansionType *T) {
2158 void TextNodeDumper::VisitTypeLoc(TypeLoc TL) {
2160 TypeVisitor<TextNodeDumper>::Visit(TL.getTypePtr());
2165 void TextNodeDumper::VisitLabelDecl(const LabelDecl *D) { dumpName(D); }
2167 void TextNodeDumper::VisitTypedefDecl(const TypedefDecl *D) {
2174 void TextNodeDumper::VisitEnumDecl(const EnumDecl *D) {
2188 void TextNodeDumper::VisitRecordDecl(const RecordDecl *D) {
2197 void TextNodeDumper::VisitEnumConstantDecl(const EnumConstantDecl *D) {
2202 void TextNodeDumper::VisitIndirectFieldDecl(const IndirectFieldDecl *D) {
2210 void TextNodeDumper::VisitFunctionDecl(const FunctionDecl *D) {
2294 void TextNodeDumper::VisitCXXDeductionGuideDecl(
2307 void TextNodeDumper::VisitLifetimeExtendedTemporaryDecl(
2318 void TextNodeDumper::VisitFieldDecl(const FieldDecl *D) {
2327 void TextNodeDumper::VisitVarDecl(const VarDecl *D) {
2389 void TextNodeDumper::VisitBindingDecl(const BindingDecl *D) {
2394 void TextNodeDumper::VisitCapturedDecl(const CapturedDecl *D) {
2399 void TextNodeDumper::VisitImportDecl(const ImportDecl *D) {
2407 void TextNodeDumper::VisitPragmaCommentDecl(const PragmaCommentDecl *D) {
2433 void TextNodeDumper::VisitPragmaDetectMismatchDecl(
2438 void TextNodeDumper::VisitOMPExecutableDirective(
2444 void TextNodeDumper::VisitOMPDeclareReductionDecl(
2466 void TextNodeDumper::VisitOMPRequiresDecl(const OMPRequiresDecl *D) {
2487 void TextNodeDumper::VisitOMPCapturedExprDecl(const OMPCapturedExprDecl *D) {
2492 void TextNodeDumper::VisitNamespaceDecl(const NamespaceDecl *D) {
2502 void TextNodeDumper::VisitUsingDirectiveDecl(const UsingDirectiveDecl *D) {
2507 void TextNodeDumper::VisitNamespaceAliasDecl(const NamespaceAliasDecl *D) {
2512 void TextNodeDumper::VisitTypeAliasDecl(const TypeAliasDecl *D) {
2517 void TextNodeDumper::VisitTypeAliasTemplateDecl(
2522 void TextNodeDumper::VisitCXXRecordDecl(const CXXRecordDecl *D) {
2675 void TextNodeDumper::VisitFunctionTemplateDecl(const FunctionTemplateDecl *D) {
2679 void TextNodeDumper::VisitClassTemplateDecl(const ClassTemplateDecl *D) {
2683 void TextNodeDumper::VisitVarTemplateDecl(const VarTemplateDecl *D) {
2687 void TextNodeDumper::VisitBuiltinTemplateDecl(const BuiltinTemplateDecl *D) {
2691 void TextNodeDumper::VisitTemplateTypeParmDecl(const TemplateTypeParmDecl *D) {
2710 void TextNodeDumper::VisitNonTypeTemplateParmDecl(
2719 void TextNodeDumper::VisitTemplateTemplateParmDecl(
2727 void TextNodeDumper::VisitUsingDecl(const UsingDecl *D) {
2735 void TextNodeDumper::VisitUsingEnumDecl(const UsingEnumDecl *D) {
2740 void TextNodeDumper::VisitUnresolvedUsingTypenameDecl(
2748 void TextNodeDumper::VisitUnresolvedUsingValueDecl(
2757 void TextNodeDumper::VisitUsingShadowDecl(const UsingShadowDecl *D) {
2762 void TextNodeDumper::VisitConstructorUsingShadowDecl(
2787 void TextNodeDumper::VisitLinkageSpecDecl(const LinkageSpecDecl *D) {
2798 void TextNodeDumper::VisitAccessSpecDecl(const AccessSpecDecl *D) {
2803 void TextNodeDumper::VisitFriendDecl(const FriendDecl *D) {
2810 void TextNodeDumper::VisitObjCIvarDecl(const ObjCIvarDecl *D) {
2835 void TextNodeDumper::VisitObjCMethodDecl(const ObjCMethodDecl *D) {
2847 void TextNodeDumper::VisitObjCTypeParamDecl(const ObjCTypeParamDecl *D) {
2867 void TextNodeDumper::VisitObjCCategoryDecl(const ObjCCategoryDecl *D) {
2875 void TextNodeDumper::VisitObjCCategoryImplDecl(const ObjCCategoryImplDecl *D) {
2881 void TextNodeDumper::VisitObjCProtocolDecl(const ObjCProtocolDecl *D) {
2888 void TextNodeDumper::VisitObjCInterfaceDecl(const ObjCInterfaceDecl *D) {
2897 void TextNodeDumper::VisitObjCImplementationDecl(
2904 void TextNodeDumper::VisitObjCCompatibleAliasDecl(
2910 void TextNodeDumper::VisitObjCPropertyDecl(const ObjCPropertyDecl *D) {
2952 void TextNodeDumper::VisitObjCPropertyImplDecl(const ObjCPropertyImplDecl *D) {
2962 void TextNodeDumper::VisitBlockDecl(const BlockDecl *D) {
2970 void TextNodeDumper::VisitConceptDecl(const ConceptDecl *D) {
2974 void TextNodeDumper::VisitCompoundStmt(const CompoundStmt *S) {
2980 void TextNodeDumper::VisitHLSLBufferDecl(const HLSLBufferDecl *D) {
2988 void TextNodeDumper::VisitHLSLOutArgExpr(const HLSLOutArgExpr *E) {
2992 void TextNodeDumper::VisitOpenACCConstructStmt(const OpenACCConstructStmt *S) {
2995 void TextNodeDumper::VisitOpenACCLoopConstruct(const OpenACCLoopConstruct *S) {
3002 void TextNodeDumper::VisitOpenACCCombinedConstruct(
3007 void TextNodeDumper::VisitOpenACCDataConstruct(const OpenACCDataConstruct *S) {
3011 void TextNodeDumper::VisitOpenACCEnterDataConstruct(
3016 void TextNodeDumper::VisitOpenACCExitDataConstruct(
3021 void TextNodeDumper::VisitOpenACCHostDataConstruct(
3026 void TextNodeDumper::VisitOpenACCWaitConstruct(const OpenACCWaitConstruct *S) {
3029 void TextNodeDumper::VisitOpenACCInitConstruct(const OpenACCInitConstruct *S) {
3032 void TextNodeDumper::VisitOpenACCShutdownConstruct(
3036 void TextNodeDumper::VisitOpenACCSetConstruct(const OpenACCSetConstruct *S) {
3039 void TextNodeDumper::VisitOpenACCUpdateConstruct(
3044 void TextNodeDumper::VisitEmbedExpr(const EmbedExpr *S) {
3049 void TextNodeDumper::VisitAtomicExpr(const AtomicExpr *AE) {