cid#1607171 Data race condition
[LibreOffice.git] / compilerplugins / clang / store / removeforwardstringdecl.hxx
blobbedd2c534359e48a7c514fd183fdaccbfb503343
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 RemoveForwardStringDecl
20 : public loplugin::FilteringRewritePlugin< RemoveForwardStringDecl >
22 public:
23 explicit RemoveForwardStringDecl( CompilerInstance& compiler, Rewriter& rewriter );
24 virtual void run() override;
25 bool VisitNamespaceDecl( const NamespaceDecl* declaration );
26 private:
27 bool tryRemoveStringForwardDecl( const Decl* decl );
30 } // namespace
32 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */