diff --git a/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp b/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp index baa977750d101..9774d93ff36fd 100644 --- a/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp +++ b/clang-tools-extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp @@ -66,8 +66,8 @@ void registerMatchersForGetArrowStart(MatchFinder *Finder, // Make sure we are not missing the known standard types. const auto SmartptrAny = anyOf(knownSmartptr(), QuacksLikeASmartptr); - const auto SmartptrWithDeref = - anyOf(cxxRecordDecl(knownSmartptr(), HasRelevantOps), QuacksLikeASmartptr); + const auto SmartptrWithDeref = anyOf( + cxxRecordDecl(knownSmartptr(), HasRelevantOps), QuacksLikeASmartptr); // Catch 'ptr.get()->Foo()' Finder->addMatcher( diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst index d6f2d2b37624e..e0f81a032c38d 100644 --- a/clang-tools-extra/docs/ReleaseNotes.rst +++ b/clang-tools-extra/docs/ReleaseNotes.rst @@ -249,6 +249,10 @@ Changes in existing checks ` check by adding the option `AllowedTypes`, that excludes specified types from adding qualifiers. +- Improved :doc:`readability-redundant-smartptr-get + ` check by fixing + some false positives involving smart pointers to arrays. + Removed checks ^^^^^^^^^^^^^^