Debian Codegraph @

src/checks/level1/rule-of-two-soft.h

raw
1 /*
2 SPDX-FileCopyrightText: 2015 Sergio Martins <[email protected]>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7 #ifndef CLANG_LAZY_RULE_OF_TWO_SOFT_H
8 #define CLANG_LAZY_RULE_OF_TWO_SOFT_H
9
10 #include "checks/ruleofbase.h"
11
12 /**
13 * Finds classes or structs which violate the rule of two.
14 * If a class has a copy-ctor it should have copy-assignment operator too, and vice-versa.
15 *
16 * See README-rule-of-two-soft for more information
17 */
18 class RuleOfTwoSoft : public RuleOfBase
19 {
20 public:
21 using RuleOfBase::RuleOfBase;
22 void VisitStmt(clang::Stmt *s) override;
23 };
24
25 #endif