update credits
[LibreOffice.git] / compilerplugins / clang / unusedvariablecheck.hxx
blob695971ebd005eddc101b90f953efdb5162101bdc
1 /*
2 * This file is part of the LibreOffice project.
4 * Based on LLVM/Clang.
6 * This file is distributed under the University of Illinois Open Source
7 * License. See LICENSE.TXT for details.
9 */
11 #ifndef UNUSEDVARIABLECHECK_H
12 #define UNUSEDVARIABLECHECK_H
14 #include "plugin.hxx"
16 namespace loplugin
19 class UnusedVariableCheck
20 : public RecursiveASTVisitor< UnusedVariableCheck >
21 , public Plugin
23 public:
24 explicit UnusedVariableCheck( CompilerInstance& compiler );
25 virtual void run() override;
26 bool VisitVarDecl( const VarDecl* var );
29 } // namespace
31 #endif // UNUSEDVARIABLECHECK_H