commit | 7b9c117b82eb6b7facfb2406d582e6d08f4ff424 | [log] [tgz] |
---|---|---|
author | Manuel Klimek <klimek@google.com> | Wed Aug 02 13:13:11 2017 +0000 |
committer | Manuel Klimek <klimek@google.com> | Wed Aug 02 13:13:11 2017 +0000 |
tree | 8d17f5ec9f3de5c55591d1eb32aff893ed5076f7 | |
parent | 696e505278663ef76f996fa5c196ba01e2904be2 [diff] [blame] |
Adapt clang-tidy checks to changing semantics of hasDeclaration. Differential Revision: https://reviews.llvm.org/D36154 llvm-svn: 309810
diff --git a/clang-tools-extra/clang-tidy/performance/InefficientStringConcatenationCheck.cpp b/clang-tools-extra/clang-tidy/performance/InefficientStringConcatenationCheck.cpp index fb53167..a17916d 100644 --- a/clang-tools-extra/clang-tidy/performance/InefficientStringConcatenationCheck.cpp +++ b/clang-tools-extra/clang-tidy/performance/InefficientStringConcatenationCheck.cpp
@@ -33,7 +33,8 @@ return; const auto BasicStringType = - hasType(cxxRecordDecl(hasName("::std::basic_string"))); + hasType(qualType(hasUnqualifiedDesugaredType(recordType( + hasDeclaration(cxxRecordDecl(hasName("::std::basic_string"))))))); const auto BasicStringPlusOperator = cxxOperatorCallExpr( hasOverloadedOperatorName("+"),