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 RecursiveASTVisitor
< Tutorial3
>
23 , public RewritePlugin
26 // One more argument for ctor.
27 Tutorial3( const InstantiationData
& data
);
28 virtual void run() override
;
29 // Will be called for every if statement.
30 bool VisitIfStmt( const IfStmt
* ifstmt
);
32 // Helper function to check if the statement is 'return false;' and
34 void modifyReturnFalse( const Stmt
* stmt
);
39 #endif // POSTFIXINCREMENTFIX_H
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */