[clang-tidy][NFC] Use equalsBoundNode matchers to simplify LoopConvertCheck
authorNathan James <n.james93@hotmail.co.uk>
Wed, 3 Mar 2021 02:51:33 +0000 (02:51 +0000)
committerNathan James <n.james93@hotmail.co.uk>
Wed, 3 Mar 2021 02:51:34 +0000 (02:51 +0000)
commit1a91b8232a5d31ef3a4f8eb52f5a7aaf79525b9b
treeaa5af67e5dd328c05f80f7c1df2cc11e1b2ca077
parentfd79aa7294ed3c5908f7c5f7eae98fa527d423ad
[clang-tidy][NFC] Use equalsBoundNode matchers to simplify LoopConvertCheck

Make use of the `equalsBoundNode` matcher to ensure Init, Conditon and Increment variables all refer to the same variable during matching.

Reviewed By: steveire

Differential Revision: https://reviews.llvm.org/D97639
clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp