bump product version to 5.0.4.1
[LibreOffice.git] / compilerplugins / clang / unusedvariablecheck.hxx
blobb3e8467a709e57924d4cb1d0a15270d0fcb89e52
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * Based on LLVM/Clang.
7 * This file is distributed under the University of Illinois Open Source
8 * License. See LICENSE.TXT for details.
12 #ifndef UNUSEDVARIABLECHECK_H
13 #define UNUSEDVARIABLECHECK_H
15 #include "plugin.hxx"
17 namespace loplugin
20 class UnusedVariableCheck
21 : public RecursiveASTVisitor< UnusedVariableCheck >
22 , public Plugin
24 public:
25 explicit UnusedVariableCheck( const InstantiationData& data );
26 virtual void run() override;
27 bool VisitVarDecl( const VarDecl* var );
30 } // namespace
32 #endif // UNUSEDVARIABLECHECK_H
34 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */