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

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 6 15:46:27 PDT 2024


HighCommander4 wrote:

> 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.

Yep, good idea. I filed https://github.com/llvm/llvm-project/issues/111316 about this.

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


More information about the cfe-commits mailing list