diff options
Diffstat (limited to 'compilerplugins/clang/unusedvariablecheck.hxx')
-rw-r--r-- | compilerplugins/clang/unusedvariablecheck.hxx | 8 |
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 |