2013-01-03 20:23:51 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* Based on LLVM/Clang.
|
|
|
|
*
|
|
|
|
* This file is distributed under the University of Illinois Open Source
|
|
|
|
* License. See LICENSE.TXT for details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef REMOVEFORWARDSTRINGDECL_H
|
|
|
|
#define REMOVEFORWARDSTRINGDECL_H
|
|
|
|
|
|
|
|
#include "plugin.hxx"
|
|
|
|
|
|
|
|
namespace loplugin
|
|
|
|
{
|
|
|
|
|
|
|
|
class RemoveForwardStringDecl
|
|
|
|
: public RecursiveASTVisitor< RemoveForwardStringDecl >
|
|
|
|
, public RewritePlugin
|
|
|
|
{
|
|
|
|
public:
|
2013-03-21 16:42:10 +01:00
|
|
|
explicit RemoveForwardStringDecl( CompilerInstance& compiler, Rewriter& rewriter );
|
2013-02-02 17:45:18 +01:00
|
|
|
virtual void run();
|
2013-05-02 18:17:32 +02:00
|
|
|
bool VisitNamespaceDecl( const NamespaceDecl* declaration );
|
2013-01-03 20:23:51 +01:00
|
|
|
private:
|
|
|
|
bool tryRemoveStringForwardDecl( const Decl* decl );
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif // REMOVEFORWARDSTRINGDECL_H
|
|
|
|
|