| 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 VARIANT_SANITIZER_H |
| 11 |
#define VARIANT_SANITIZER_H |
| 12 |
|
| 13 |
#include "checkbase.h" |
| 14 |
|
| 15 |
/** |
| 16 |
* Detects when you're using QVariant::value<Foo>() instead of QVariant::toFoo(). |
| 17 |
* |
| 18 |
*/ |
| 19 |
class QVariantTemplateInstantiation : public CheckBase |
| 20 |
{ |
| 21 |
public: |
| 22 |
using CheckBase::CheckBase; |
| 23 |
void VisitStmt(clang::Stmt *stm) override; |
| 24 |
}; |
| 25 |
|
| 26 |
#endif |