bump product version to 5.0.4.1
[LibreOffice.git] / compilerplugins / clang / store / removeforwardstringdecl.hxx
blobd8e2e7ea5fb815c13dd9759c5fd9c4103016fb3f
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 REMOVEFORWARDSTRINGDECL_H
13 #define REMOVEFORWARDSTRINGDECL_H
15 #include "plugin.hxx"
17 namespace loplugin
20 class RemoveForwardStringDecl
21 : public RecursiveASTVisitor< RemoveForwardStringDecl >
22 , public RewritePlugin
24 public:
25 explicit RemoveForwardStringDecl( CompilerInstance& compiler, Rewriter& rewriter );
26 virtual void run() override;
27 bool VisitNamespaceDecl( const NamespaceDecl* declaration );
28 private:
29 bool tryRemoveStringForwardDecl( const Decl* decl );
32 } // namespace
34 #endif // REMOVEFORWARDSTRINGDECL_H
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */