bump product version to 6.3.0.0.beta1
[LibreOffice.git] / compilerplugins / clang / store / tutorial / tutorial1.hxx
bloba296ab2cf27bc3dcd9d81e86ceccfb121f870814
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 examining the Clang AST tree (i.e. syntax tree).
23 : public FilteringPlugin< Tutorial1 >
25 public:
26 // Ctor, nothing special.
27 Tutorial1( const InstantiationData& data );
28 // The function that will be called to perform the actual action.
29 virtual void run() override;
30 // Function from Clang, it will be called for every return statement in the source.
31 bool VisitReturnStmt( const ReturnStmt* returnstmt );
34 } // namespace
36 #endif // POSTFIXINCREMENTFIX_H
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */