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.
20 // Similar like for Tutorial2, but this time the base class is RewritePlugin.
22 : public loplugin::FilteringRewritePlugin
< Tutorial3
>
25 // One more argument for ctor.
26 Tutorial3( const InstantiationData
& data
);
27 virtual void run() override
;
28 // Will be called for every if statement.
29 bool VisitIfStmt( const IfStmt
* ifstmt
);
31 // Helper function to check if the statement is 'return false;' and
33 void modifyReturnFalse( const Stmt
* stmt
);
38 #endif // POSTFIXINCREMENTFIX_H
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */