[clang-tidy] Make performance-inefficient-vector-operation work on members
Fixes https://llvm.org/PR50157 Adds support for when the container being read from in a range-for is a member of a struct. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D101624
Showing
- clang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp 8 additions, 1 deletion...lang-tidy/performance/InefficientVectorOperationCheck.cpp
- clang-tools-extra/docs/ReleaseNotes.rst 4 additions, 0 deletionsclang-tools-extra/docs/ReleaseNotes.rst
- clang-tools-extra/test/clang-tidy/checkers/performance-inefficient-vector-operation.cpp 29 additions, 1 deletion...idy/checkers/performance-inefficient-vector-operation.cpp
Please register or sign in to comment