/* SPDX-FileCopyrightText: 2015 Klarälvdalens Datakonsult AB a KDAB Group company info@kdab.com SPDX-FileContributor: Sérgio Martins SPDX-FileCopyrightText: 2015 Sergio Martins SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef DETACHING_MEMBER_H #define DETACHING_MEMBER_H #include "checks/detachingbase.h" /** * Finds places where you're calling non-const member functions on member containers. * * For example m_list.first(), which would detach if the container is shared. * See README-deatching-member for more information */ class DetachingMember : public DetachingBase { public: explicit DetachingMember(const std::string &name, Options options); void VisitStmt(clang::Stmt *stm) override; }; #endif