| 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 QMAP_WITH_POINTER_KEY_H |
| 11 |
#define QMAP_WITH_POINTER_KEY_H |
| 12 |
|
| 13 |
#include "checkbase.h" |
| 14 |
|
| 15 |
/** |
| 16 |
* Finds cases where you're using QMap<K,T> and K is a pointer. QHash<K,T> should be used instead. |
| 17 |
* |
| 18 |
* See README-qmap-with-pointer-key for more information. |
| 19 |
*/ |
| 20 |
class QMapWithPointerKey : public CheckBase |
| 21 |
{ |
| 22 |
public: |
| 23 |
using CheckBase::CheckBase; |
| 24 |
void VisitDecl(clang::Decl *decl) override; |
| 25 |
}; |
| 26 |
|
| 27 |
#endif |