[clang-tidy] Make performance-inefficient-vector-operation work on members
authorNathan James <n.james93@hotmail.co.uk>
Fri, 8 Apr 2022 13:17:37 +0000 (14:17 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Fri, 8 Apr 2022 13:17:41 +0000 (14:17 +0100)
commit0e0b0feff194358e5e68bf36f5a563d269fa8e88
treee8ebd0b5300755e22e4ab5f6b17b0103230521eb
parentb20719dc7d39492b8934a6b6943f836fa60ce2f4
[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
clang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/performance-inefficient-vector-operation.cpp