2013-09-21 08:42:35 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-10-09 07:50:19 -05: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 UNUSEDVARIABLECHECK_H
|
|
|
|
#define UNUSEDVARIABLECHECK_H
|
|
|
|
|
2012-10-15 08:36:25 -05:00
|
|
|
#include "plugin.hxx"
|
2012-10-09 07:50:19 -05:00
|
|
|
|
|
|
|
namespace loplugin
|
|
|
|
{
|
|
|
|
|
|
|
|
class UnusedVariableCheck
|
|
|
|
: public RecursiveASTVisitor< UnusedVariableCheck >
|
2012-10-09 09:27:25 -05:00
|
|
|
, public Plugin
|
2012-10-09 07:50:19 -05:00
|
|
|
{
|
|
|
|
public:
|
2013-03-21 10:42:10 -05:00
|
|
|
explicit UnusedVariableCheck( CompilerInstance& compiler );
|
2013-05-31 11:34:11 -05:00
|
|
|
virtual void run() override;
|
2013-05-02 11:17:32 -05:00
|
|
|
bool VisitVarDecl( const VarDecl* var );
|
2012-10-09 07:50:19 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif // UNUSEDVARIABLECHECK_H
|
2013-09-21 08:42:35 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|