2 * This file is part of the LibreOffice project.
6 * This file is distributed under the University of Illinois Open Source
7 * License. See LICENSE.TXT for details.
11 #ifndef BODYNOTINBLOCK_H
12 #define BODYNOTINBLOCK_H
20 : public RecursiveASTVisitor
< BodyNotInBlock
>
24 explicit BodyNotInBlock( CompilerInstance
& compiler
);
25 virtual void run() override
;
26 bool VisitFunctionDecl( const FunctionDecl
* declaration
);
28 typedef vector
< const Stmt
* > StmtParents
;
29 void traverseStatement( const Stmt
* stmt
, StmtParents
& parents
);
30 void checkBody( const Stmt
* body
, SourceLocation stmtLocation
, const StmtParents
& parents
,
31 int stmtType
, bool dontGoUp
= false );
36 #endif // BODYNOTINBLOCK_H