/*
    SPDX-FileCopyrightText: 2017 Sergio Martins <smartins@kde.org>

    SPDX-License-Identifier: LGPL-2.0-or-later
*/

#ifndef CLAZY_STRICT_ITERATORS_H
#define CLAZY_STRICT_ITERATORS_H

#include "checkbase.h"

namespace clang
{
class ImplicitCastExpr;
class CXXOperatorCallExpr;
}

/**
 * See README-strict-iterators.md for more info.
 */
class StrictIterators : public CheckBase
{
public:
    using CheckBase::CheckBase;
    void VisitStmt(clang::Stmt *stmt) override;

private:
    bool handleImplicitCast(clang::ImplicitCastExpr *);
    bool handleOperator(clang::CXXOperatorCallExpr *);
};

#endif
