summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/unusedvariablecheck.hxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-10-09 16:27:25 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-10-09 17:25:28 +0200
commit4fc56b9d4cd12cca51d7696e0776de5aa8f822cd (patch)
tree8a513a329ca300785307e3185eb9df4b686ce50c /compilerplugins/clang/unusedvariablecheck.hxx
parentd4aa136e975b150add5f32013ea37aa68e9ccb57 (diff)
move some code to a common base
Change-Id: Ife306c69054dfcc20b1339b88a4e14e5333ced71
Diffstat (limited to 'compilerplugins/clang/unusedvariablecheck.hxx')
-rw-r--r--compilerplugins/clang/unusedvariablecheck.hxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/compilerplugins/clang/unusedvariablecheck.hxx b/compilerplugins/clang/unusedvariablecheck.hxx
index c49532a86414..21e0eabd03c0 100644
--- a/compilerplugins/clang/unusedvariablecheck.hxx
+++ b/compilerplugins/clang/unusedvariablecheck.hxx
@@ -11,23 +11,19 @@
#ifndef UNUSEDVARIABLECHECK_H
#define UNUSEDVARIABLECHECK_H
-#include <clang/AST/RecursiveASTVisitor.h>
-
-using namespace clang;
+#include "compileplugin.hxx"
namespace loplugin
{
class UnusedVariableCheck
: public RecursiveASTVisitor< UnusedVariableCheck >
+ , public Plugin
{
public:
explicit UnusedVariableCheck( ASTContext& context );
void run();
bool VisitNamedDecl( NamedDecl* declaration );
- private:
- DiagnosticBuilder report( DiagnosticsEngine::Level level, StringRef message, SourceLocation loc );
- ASTContext& context;
};
} // namespace