| 1 |
/* |
| 2 |
SPDX-FileCopyrightText: 2015 Klarälvdalens Datakonsult AB a KDAB Group company [email protected] |
| 3 |
SPDX-FileContributor: Sérgio Martins <[email protected]> |
| 4 |
|
| 5 |
SPDX-FileCopyrightText: 2015 Sergio Martins <[email protected]> |
| 6 |
|
| 7 |
SPDX-License-Identifier: LGPL-2.0-or-later |
| 8 |
*/ |
| 9 |
|
| 10 |
#ifndef NON_POD_STATIC_H |
| 11 |
#define NON_POD_STATIC_H |
| 12 |
|
| 13 |
#include "checkbase.h" |
| 14 |
|
| 15 |
#include <string> |
| 16 |
#include <vector> |
| 17 |
|
| 18 |
/** |
| 19 |
* Finds global static non-POD variables. |
| 20 |
* |
| 21 |
* See README-non-pod-global-static. |
| 22 |
*/ |
| 23 |
class NonPodGlobalStatic : public CheckBase |
| 24 |
{ |
| 25 |
public: |
| 26 |
explicit NonPodGlobalStatic(const std::string &name, Options options); |
| 27 |
void VisitStmt(clang::Stmt *stm) override; |
| 28 |
|
| 29 |
private: |
| 30 |
std::vector<unsigned int> m_emittedWarnings; |
| 31 |
}; |
| 32 |
|
| 33 |
#endif |