| 1 |
/* |
| 2 |
SPDX-FileCopyrightText: 2017 Klarälvdalens Datakonsult AB a KDAB Group company [email protected] |
| 3 |
SPDX-FileContributor: Sérgio Martins <[email protected]> |
| 4 |
|
| 5 |
SPDX-License-Identifier: LGPL-2.0-or-later |
| 6 |
*/ |
| 7 |
|
| 8 |
#ifndef CLAZY_CONNECT_NOT_NORMALIZED_H |
| 9 |
#define CLAZY_CONNECT_NOT_NORMALIZED_H |
| 10 |
|
| 11 |
#include "checkbase.h" |
| 12 |
|
| 13 |
namespace clang |
| 14 |
{ |
| 15 |
class CallExpr; |
| 16 |
class Expr; |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* See README-connect-not-normalized.md for more info. |
| 21 |
*/ |
| 22 |
class ConnectNotNormalized : public CheckBase |
| 23 |
{ |
| 24 |
public: |
| 25 |
using CheckBase::CheckBase; |
| 26 |
void VisitStmt(clang::Stmt *stmt) override; |
| 27 |
|
| 28 |
private: |
| 29 |
bool handleQ_ARG(clang::Stmt *); |
| 30 |
bool handleConnect(clang::CallExpr *); |
| 31 |
bool checkNormalizedLiteral(clang::StringLiteral *, clang::Expr *); |
| 32 |
}; |
| 33 |
|
| 34 |
#endif |