| 1 |
/* |
| 2 |
SPDX-FileCopyrightText: 2017 Sergio Martins <[email protected]> |
| 3 |
|
| 4 |
SPDX-License-Identifier: LGPL-2.0-or-later |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef CLAZY_STRICT_ITERATORS_H |
| 8 |
#define CLAZY_STRICT_ITERATORS_H |
| 9 |
|
| 10 |
#include "checkbase.h" |
| 11 |
|
| 12 |
namespace clang |
| 13 |
{ |
| 14 |
class ImplicitCastExpr; |
| 15 |
class CXXOperatorCallExpr; |
| 16 |
} |
| 17 |
|
| 18 |
/** |
| 19 |
* See README-strict-iterators.md for more info. |
| 20 |
*/ |
| 21 |
class StrictIterators : public CheckBase |
| 22 |
{ |
| 23 |
public: |
| 24 |
using CheckBase::CheckBase; |
| 25 |
void VisitStmt(clang::Stmt *stmt) override; |
| 26 |
|
| 27 |
private: |
| 28 |
bool handleImplicitCast(clang::ImplicitCastExpr *); |
| 29 |
bool handleOperator(clang::CXXOperatorCallExpr *); |
| 30 |
}; |
| 31 |
|
| 32 |
#endif |