Debian Codegraph @

src/checks/manuallevel/detaching-member.h

raw
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 DETACHING_MEMBER_H
11 #define DETACHING_MEMBER_H
12
13 #include "checks/detachingbase.h"
14
15 /**
16 * Finds places where you're calling non-const member functions on member containers.
17 *
18 * For example m_list.first(), which would detach if the container is shared.
19 * See README-deatching-member for more information
20 */
21 class DetachingMember : public DetachingBase
22 {
23 public:
24 explicit DetachingMember(const std::string &name, Options options);
25 void VisitStmt(clang::Stmt *stm) override;
26 };
27
28 #endif