| 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_BASE_H |
| 8 |
#define CLANG_LAZY_RULE_OF_BASE_H |
| 9 |
|
| 10 |
#include "checkbase.h" |
| 11 |
|
| 12 |
#include <string> |
| 13 |
|
| 14 |
namespace clang |
| 15 |
{ |
| 16 |
class CXXRecordDecl; |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* Base class for RuleOfTwo and RuleOfThree |
| 21 |
*/ |
| 22 |
class RuleOfBase : public CheckBase |
| 23 |
{ |
| 24 |
public: |
| 25 |
explicit RuleOfBase(const std::string &name, Options options); |
| 26 |
|
| 27 |
protected: |
| 28 |
bool isBlacklisted(clang::CXXRecordDecl *record) const; |
| 29 |
}; |
| 30 |
|
| 31 |
#endif |