[clang-tools-extra] [clang-tidy] Improve `bugprone-infinite-loop` check by adding handing for structured bindings (PR #144213)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 18 18:20:12 PDT 2025


flovent wrote:

> LGTM. I tried to address the specific case of tuple structured bindings in my PR: #147410. Your PR handles the case for all structured bindings. It may be a good idea to add tests for tuple (you can lift from my PR) and array structured bindings too.

Thanks for the review and advice, these testcases have now been added.

https://github.com/llvm/llvm-project/pull/144213


More information about the cfe-commits mailing list