Update git submodules
[LibreOffice.git] / compilerplugins / clang / unusedvariablecheck.hxx
blob5f5edbbbaf96452715e171d6eea9d3732b7481b6
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 #pragma once
14 #include "plugin.hxx"
16 namespace loplugin
19 class UnusedVariableCheck
20 : public FilteringPlugin< UnusedVariableCheck >
22 public:
23 explicit UnusedVariableCheck( const InstantiationData& data );
24 virtual void run() override;
25 bool VisitVarDecl( const VarDecl* var );
26 private:
27 bool isUnusedSmartPointer( const VarDecl* var );
30 } // namespace
32 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */