cURL: follow redirects
[LibreOffice.git] / compilerplugins / clang / store / tutorial / tutorial1.hxx
blob365d9259680ccfec82eb9a4ead26e80520a9536a
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 TUTORIAL1_H
13 #define TUTORIAL1_H
15 #include "plugin.hxx"
17 namespace loplugin
20 // The class implementing the plugin action.
21 class Tutorial1
22 // Inherits from the Clang class that will allow examing the Clang AST tree (i.e. syntax tree).
23 : public RecursiveASTVisitor< Tutorial1 >
24 // And the base class for LO Clang plugins.
25 , public Plugin
27 public:
28 // Ctor, nothing special.
29 Tutorial1( const InstantiationData& data );
30 // The function that will be called to perform the actual action.
31 virtual void run() override;
32 // Function from Clang, it will be called for every return statement in the source.
33 bool VisitReturnStmt( const ReturnStmt* returnstmt );
36 } // namespace
38 #endif // POSTFIXINCREMENTFIX_H
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */