cURL: follow redirects
[LibreOffice.git] / compilerplugins / clang / store / tutorial / tutorial2.hxx
blobcb708d32cef8f3f195f1ba643da7ae73bbb6b540
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 RecursiveASTVisitor< Tutorial2 >
23 , public Plugin
25 public:
26 Tutorial2( const InstantiationData& data );
27 virtual void run() override;
28 // Will be called for every if statement.
29 bool VisitIfStmt( const IfStmt* ifstmt );
30 private:
31 // Helper function to check if the statement is 'return false;'.
32 bool isReturnFalse( const Stmt* stmt );
35 } // namespace
37 #endif // POSTFIXINCREMENTFIX_H
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */