File indexing completed on 2024-04-28 05:38:29

0001 /*
0002     SPDX-FileCopyrightText: 2015 Klarälvdalens Datakonsult AB a KDAB Group company info@kdab.com
0003     SPDX-FileContributor: SĂ©rgio Martins <sergio.martins@kdab.com>
0004 
0005     SPDX-FileCopyrightText: 2015 Sergio Martins <smartins@kde.org>
0006 
0007     SPDX-License-Identifier: LGPL-2.0-or-later
0008 */
0009 
0010 #ifndef NON_POD_STATIC_H
0011 #define NON_POD_STATIC_H
0012 
0013 #include "checkbase.h"
0014 
0015 #include <string>
0016 
0017 class ClazyContext;
0018 namespace clang
0019 {
0020 class Stmt;
0021 } // namespace clang
0022 
0023 /**
0024  * Finds global static non-POD variables.
0025  *
0026  * See README-non-pod-global-static.
0027  */
0028 class NonPodGlobalStatic : public CheckBase
0029 {
0030 public:
0031     explicit NonPodGlobalStatic(const std::string &name, ClazyContext *context);
0032     void VisitStmt(clang::Stmt *stm) override;
0033 };
0034 
0035 #endif