1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
7 * This file is distributed under the University of Illinois Open Source
8 * License. See LICENSE.TXT for details.
12 #ifndef BODYNOTINBLOCK_H
13 #define BODYNOTINBLOCK_H
21 : public loplugin::FilteringPlugin
<BodyNotInBlock
>
24 explicit BodyNotInBlock( const InstantiationData
& data
);
25 virtual void run() override
;
26 bool VisitIfStmt( const IfStmt
* stmt
);
27 bool VisitWhileStmt( const WhileStmt
* stmt
);
28 bool VisitForStmt( const ForStmt
* stmt
);
29 bool VisitCXXForRangeStmt( const CXXForRangeStmt
* stmt
);
31 void checkBody( const Stmt
* body
, SourceLocation stmtLocation
, int stmtType
, bool dontGoUp
= false );
36 #endif // BODYNOTINBLOCK_H
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */