bump product version to 6.3.0.0.beta1
[LibreOffice.git] / compilerplugins / clang / store / tutorial / tutorial2.hxx
blob9c1f486f80e061bd57cd07b59f65b731cdcbe92c
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 #ifndef TUTORIAL2_H
13 #define TUTORIAL2_H
15 #include "plugin.hxx"
17 namespace loplugin
20 // The same like for Tutorial1.
21 class Tutorial2
22 : public FilteringPlugin< Tutorial2 >
24 public:
25 Tutorial2( const InstantiationData& data );
26 virtual void run() override;
27 // Will be called for every if statement.
28 bool VisitIfStmt( const IfStmt* ifstmt );
29 private:
30 // Helper function to check if the statement is 'return false;'.
31 bool isReturnFalse( const Stmt* stmt );
34 } // namespace
36 #endif // POSTFIXINCREMENTFIX_H
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */