diff options
| author | Mark de Wever <koraq@xs4all.nl> | 2020-01-01 17:23:21 +0100 |
|---|---|---|
| committer | Mark de Wever <koraq@xs4all.nl> | 2020-01-01 20:01:37 +0100 |
| commit | 8dc7b982b4556c243e0502e6e230bdd53ddd65ff (patch) | |
| tree | 518a39bbece25299e56350272605c7a9bd8f60c6 /clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp | |
| parent | 9b24dad6c06bba771b805ffd9bd047af25317e52 (diff) | |
| download | bcm5719-llvm-8dc7b982b4556c243e0502e6e230bdd53ddd65ff.tar.gz bcm5719-llvm-8dc7b982b4556c243e0502e6e230bdd53ddd65ff.zip | |
[NFC] Fixes -Wrange-loop-analysis warnings
This avoids new warnings due to D68912 adds -Wrange-loop-analysis to -Wall.
Differential Revision: https://reviews.llvm.org/D71857
Diffstat (limited to 'clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp')
| -rw-r--r-- | clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp b/clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp index 8ad47505338..62c4c768e84 100644 --- a/clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp +++ b/clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp @@ -75,7 +75,7 @@ void SlicingCheck::DiagnoseSlicedOverriddenMethods( const CXXRecordDecl &BaseDecl) { if (DerivedDecl.getCanonicalDecl() == BaseDecl.getCanonicalDecl()) return; - for (const auto &Method : DerivedDecl.methods()) { + for (const auto *Method : DerivedDecl.methods()) { // Virtual destructors are OK. We're ignoring constructors since they are // tagged as overrides. if (isa<CXXConstructorDecl>(Method) || isa<CXXDestructorDecl>(Method)) |

