Lines Matching defs:DISPATCH
62 #define DISPATCH(NAME, CLASS) \
65 void dispatch(Decl *D) {
71 DISPATCH(dispatch##DERIVED##DeclAttrs, DERIVED##Decl); \
73 DISPATCH(dispatch##DERIVED##DeclChildren, DERIVED##Decl); \
74 DISPATCH(dispatch##DERIVED##DeclAsContext, DERIVED##Decl); \
82 void dispatch##DERIVED##DeclAttrs(DERIVED##Decl *D) { \
83 DISPATCH(dispatch##BASE##Attrs, BASE); \
84 DISPATCH(visit##DERIVED##DeclAttrs, DERIVED##Decl); \
87 void dispatch##DERIVED##DeclChildren(DERIVED##Decl *D) { \
88 DISPATCH(dispatch##BASE##Children, BASE); \
89 DISPATCH(visit##DERIVED##DeclChildren, DERIVED##Decl); \
92 void dispatch##DERIVED##DeclAsContext(DERIVED##Decl *D) { \
93 DISPATCH(dispatch##BASE##AsContext, BASE); \
94 DISPATCH(visit##DERIVED##DeclAsContext, DERIVED##Decl); \
100 DISPATCH(visitDeclAttrs, Decl);
105 DISPATCH(visitDeclChildren, Decl);
110 DISPATCH(visitDeclAsContext, Decl);
114 #undef DISPATCH
118 #define DISPATCH(NAME, CLASS) \
121 void dispatch(Type *T) {
125 DISPATCH(dispatch##DERIVED##TypeAttrs, DERIVED##Type); \
127 DISPATCH(dispatch##DERIVED##TypeChildren, DERIVED##Type); \
135 void dispatch##DERIVED##TypeAttrs(DERIVED##Type *T) { \
136 DISPATCH(dispatch##BASE##Attrs, BASE); \
137 DISPATCH(visit##DERIVED##TypeAttrs, DERIVED##Type); \
140 void dispatch##DERIVED##TypeChildren(DERIVED##Type *T) { \
141 DISPATCH(dispatch##BASE##Children, BASE); \
142 DISPATCH(visit##DERIVED##TypeChildren, DERIVED##Type); \
148 DISPATCH(visitTypeAttrs, Type);
153 DISPATCH(visitTypeChildren, Type);
157 #undef DISPATCH
284 dispatch(*I);
292 dispatch(L[I]);
308 void dispatch(const TemplateArgument &A) {
315 dispatch(A.getAsType());
336 dispatch(A.getAsExpr());
343 dispatch(*P);
349 void dispatch(const TemplateArgumentLoc &A) {
350 dispatch(A.getArgument());
382 void dispatch(Decl *D) {
384 XMLDeclVisitor<XMLDumper>::dispatch(D);
395 dispatch(*I);
452 dispatch(D->getType());
457 //dispatch(D->getTypeSourceInfo()->getTypeLoc());
477 if (D->hasInit()) dispatch(D->getInit());
501 dispatch(*I);
505 dispatch(*I);
507 dispatch(D->getBody());
515 void dispatch(CXXCtorInitializer *Init) {
526 dispatch(D->getBitWidth());
534 if (D->getInitExpr()) dispatch(D->getInitExpr());
559 dispatch(D->getTypeSourceInfo()->getTypeLoc());
567 dispatch(D->getTypeSourceInfo()->getTypeLoc());
586 dispatch(D->getPromotionType());
590 dispatch
604 dispatch(I->getTypeSourceInfo()->getTypeLoc());
620 dispatch(*I);
621 dispatch(D->getBody());
633 dispatch(D->getTemplatedDecl());
662 dispatch(Info->Function);
690 dispatch(*I);
701 dispatch(D->getDefaultArgumentInfo()->getTypeLoc());
712 dispatch(D->getDefaultArgument());
723 dispatch(D->getDefaultArgument());
730 dispatch(T->getTypeLoc());
732 dispatch(D->getFriendDecl());
817 dispatch(*I);
852 dispatch(D->getResultType());
855 dispatch(*I);
857 dispatch(D->getBody());
884 void dispatch(TypeLoc TL) {
885 dispatch(TL.getType()); // for now
888 void dispatch(QualType T) {
905 dispatch(QualType(T.getTypePtr(), 0));
912 XMLTypeVisitor<XMLDumper>::dispatch(const_cast<Type*>(T.getTypePtr()));
940 dispatch(T->getPointeeType());
943 dispatch(T->getPointeeType());
946 dispatch(T->getPointeeType());
949 dispatch(T->getPointeeType());
975 dispatch(T->getResultType());
999 dispatch(*I);
1008 dispatch(*I);
1023 dispatch(T->getArg(I));
1028 void dispatch(Stmt *S) {
1045 XMLDumper(out, getASTContext()).dispatch(const_cast<Decl*>(this));