tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / compilerplugins / clang / store / tutorial / tutorial2.hxx
blob9ae2de354844ecd514ad8066bc41f99582442b5f
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 // The same like for Tutorial1.
20 class Tutorial2
21 : public FilteringPlugin< Tutorial2 >
23 public:
24 Tutorial2( const InstantiationData& data );
25 virtual void run() override;
26 // Will be called for every if statement.
27 bool VisitIfStmt( const IfStmt* ifstmt );
28 private:
29 // Helper function to check if the statement is 'return false;'.
30 bool isReturnFalse( const Stmt* stmt );
33 } // namespace
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */