tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / compilerplugins / clang / store / bodynotinblock.hxx
blobd74a4fbc169d91f6a33081b3c4d727dd66540f1e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * Based on LLVM/Clang.
7 * This file is distributed under the University of Illinois Open Source
8 * License. See LICENSE.TXT for details.
12 #pragma once
14 #include "plugin.hxx"
16 namespace loplugin
19 class BodyNotInBlock
20 : public loplugin::FilteringPlugin<BodyNotInBlock>
22 public:
23 explicit BodyNotInBlock( const InstantiationData& data );
24 virtual void run() override;
25 bool VisitIfStmt( const IfStmt* stmt );
26 bool VisitWhileStmt( const WhileStmt* stmt );
27 bool VisitForStmt( const ForStmt* stmt );
28 bool VisitCXXForRangeStmt( const CXXForRangeStmt* stmt );
29 private:
30 void checkBody( const Stmt* body, SourceLocation stmtLocation, int stmtType, bool dontGoUp = false );
33 } // namespace
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */