summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/bodynotinblock.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/bodynotinblock.hxx')
-rw-r--r--compilerplugins/clang/bodynotinblock.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/compilerplugins/clang/bodynotinblock.hxx b/compilerplugins/clang/bodynotinblock.hxx
index e6ad1ab893e3..41eca7d7f5f5 100644
--- a/compilerplugins/clang/bodynotinblock.hxx
+++ b/compilerplugins/clang/bodynotinblock.hxx
@@ -23,12 +23,13 @@ class BodyNotInBlock
public:
explicit BodyNotInBlock( CompilerInstance& compiler );
virtual void run() override;
- bool VisitFunctionDecl( const FunctionDecl* declaration );
+ bool VisitIfStmt( const IfStmt* stmt );
+ bool VisitWhileStmt( const WhileStmt* stmt );
+ bool VisitForStmt( const ForStmt* stmt );
+ bool VisitCXXForRangeStmt( const CXXForRangeStmt* stmt );
private:
typedef vector< const Stmt* > StmtParents;
- void traverseStatement( const Stmt* stmt, StmtParents& parents );
- void checkBody( const Stmt* body, SourceLocation stmtLocation, const StmtParents& parents,
- int stmtType, bool dontGoUp = false );
+ void checkBody( const Stmt* body, SourceLocation stmtLocation, int stmtType, bool dontGoUp = false );
};
} // namespace