[clang-tools-extra] [clang-tidy] Avoid capturing a local variable in a static lambda in UseRangesCheck (PR #111282)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 6 13:17:14 PDT 2024


https://github.com/hokein approved this pull request.

Thanks, it looks good.

For this specific case, where a static lambda captures a local variable, I think we could enhance Clang to detect this kind of use-after-free bug.

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


More information about the cfe-commits mailing list