diff options
author | Sergio Martins <smartins@kde.org> | 2017-10-12 22:57:30 +0100 |
---|---|---|
committer | Sergio Martins <iamsergio@gmail.com> | 2017-10-12 22:57:30 +0100 |
commit | 92f63820f918b13ee417cedf4c1f81803c35bf92 (patch) | |
tree | a68cb54378b5a547eaff5f52eb7b2c4cb7b05713 /src | |
parent | 6fddbb1aab9ee0aedadafc227d41c813079d76fd (diff) |
rule-of-three: Don't warn for std:: types
Diffstat (limited to 'src')
-rw-r--r-- | src/checks/ruleofbase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checks/ruleofbase.cpp b/src/checks/ruleofbase.cpp index 1d0b774b..13972fb3 100644 --- a/src/checks/ruleofbase.cpp +++ b/src/checks/ruleofbase.cpp @@ -32,7 +32,7 @@ RuleOfBase::RuleOfBase(const std::string &name, ClazyContext *context) bool RuleOfBase::isBlacklisted(CXXRecordDecl *record) const { - if (!record) + if (!record || clazy_std::startsWith(record->getQualifiedNameAsString(), "std::")) return true; const auto qualifiedName = StringUtils::classNameFor(record); |