Lines Matching full:clang
20 #include "clang/AST/StmtVisitor.h"
23 #include "clang/AST/ASTContext.h"
25 namespace clang {
33 class RSASTReplace : public clang::StmtVisitor<RSASTReplace> {
35 clang::ASTContext &C;
36 clang::Stmt *mOuterStmt;
37 clang::Stmt *mOldStmt;
38 clang::Stmt *mNewStmt;
39 clang::Expr *mOldExpr;
40 clang::Expr *mNewExpr;
42 inline bool matchesExpr(const clang::Expr *E) const {
51 inline bool matchesStmt(const clang::Stmt *S) const {
56 void ReplaceInCompoundStmt(clang::CompoundStmt *CS);
59 explicit RSASTReplace(clang::ASTContext &Con)
69 void VisitStmt(clang::Stmt *S);
70 void VisitCompoundStmt(clang::CompoundStmt *CS);
71 void VisitCaseStmt(clang::CaseStmt *CS);
72 void VisitDefaultStmt(clang::DefaultStmt *DS);
73 void VisitDoStmt(clang::DoStmt *DS);
74 void VisitForStmt(clang::ForStmt *FS);
75 void VisitIfStmt(clang::IfStmt *IS);
76 void VisitSwitchCase(clang::SwitchCase *SC);
77 void VisitSwitchStmt(clang::SwitchStmt *SS);
78 void VisitWhileStmt(clang::WhileStmt *WS);
82 clang::Stmt *OuterStmt,
83 clang::Stmt *OldStmt,
84 clang::Stmt *NewStmt);