This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy][NFC] Use equalsBoundNode matchers to simplify LoopConvertCheck
ClosedPublic

Authored by njames93 on Feb 28 2021, 12:15 PM.

Details

Summary

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

Diff Detail

Event Timeline

njames93 created this revision.Feb 28 2021, 12:15 PM
njames93 requested review of this revision.Feb 28 2021, 12:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2021, 12:15 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
steveire accepted this revision.Feb 28 2021, 3:06 PM
steveire added a subscriber: steveire.

Looks like a good simplification!

This revision is now accepted and ready to land.Feb 28 2021, 3:06 PM