[libcxx-commits] [libc] [libcxx] [flang] [clang] [libcxxabi] [compiler-rt] [openmp] [clang-tools-extra] [llvm] [mlir] [clang] Avoid -Wshadow warning when init-capture named same as class field (PR #74512)

Mariya Podchishchaeva via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 12 02:01:45 PST 2023


Fznamznon wrote:

@cor3ntin , @shafik WDYT about

> I have a concern, that probably in case when this is actually captured, with current implementation of the patch there will be no warning as well.

Should we still emit shadowing warning in case lambda captured this and has an init-capture with the same name as a class field?

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


More information about the libcxx-commits mailing list