GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / compilerplugins / clang / unusedvariablecheck.hxx
blobcf0ca7dc4c12e97751418e38c97c625136360242
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( CompilerInstance& compiler );
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: */