tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / compilerplugins / clang / store / tutorial / tutorial1.hxx
blob10f73f04b2cdd3d2281c503096c41a533a0aa9e1
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 #pragma once
14 #include "plugin.hxx"
16 namespace loplugin
19 // The class implementing the plugin action.
20 class Tutorial1
21 // Inherits from the Clang class that will allow examining the Clang AST tree (i.e. syntax tree).
22 : public FilteringPlugin< Tutorial1 >
24 public:
25 // Ctor, nothing special.
26 Tutorial1( const InstantiationData& data );
27 // The function that will be called to perform the actual action.
28 virtual void run() override;
29 // Function from Clang, it will be called for every return statement in the source.
30 bool VisitReturnStmt( const ReturnStmt* returnstmt );
33 } // namespace
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */