tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / compilerplugins / clang / store / tutorial / tutorial3.hxx
blob11378ef7658115fb3318bacb949a958680d42a96
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 // Similar like for Tutorial2, but this time the base class is RewritePlugin.
20 class Tutorial3
21 : public loplugin::FilteringRewritePlugin< Tutorial3 >
23 public:
24 // One more argument for ctor.
25 Tutorial3( 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;' and
31 // modify it if yes.
32 void modifyReturnFalse( const Stmt* stmt );
35 } // namespace
37 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */