This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix wrong code generation for `modernize-loop-convert` with structured bindings.
ClosedPublic

Authored by AMS21 on Jun 13 2023, 1:10 PM.

Diff Detail

Event Timeline

AMS21 created this revision.Jun 13 2023, 1:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2023, 1:10 PM
AMS21 requested review of this revision.Jun 13 2023, 1:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2023, 1:10 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
AMS21 updated this revision to Diff 531042.Jun 13 2023, 1:11 PM

Remove debug code

PiotrZSL accepted this revision.Jun 14 2023, 2:12 AM

Overall looks fine.

clang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
545–547

this could be merged, try dyn_cast

This revision is now accepted and ready to land.Jun 14 2023, 2:12 AM
AMS21 updated this revision to Diff 531274.Jun 14 2023, 5:25 AM

Use dyn_cast

AMS21 marked an inline comment as done.Jun 14 2023, 5:26 AM

If there are no more problems, I would kindly ask for someone to push this on my behalf :)