[all-commits] [llvm/llvm-project] c90114: [clang] Avoid -Wshadow warning when init-capture n...
Mariya Podchishchaeva via All-commits
all-commits at lists.llvm.org
Mon Feb 12 01:44:32 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c90114c993ec1443360769a4d51963e3536de0ef
https://github.com/llvm/llvm-project/commit/c90114c993ec1443360769a4d51963e3536de0ef
Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
Date: 2024-02-12 (Mon, 12 Feb 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Sema/ScopeInfo.h
M clang/lib/Sema/SemaDecl.cpp
M clang/test/SemaCXX/warn-shadow-in-lambdas.cpp
Log Message:
-----------
[clang] Avoid -Wshadow warning when init-capture named same as class field (#74512)
Shadowing warning doesn't make much sense since field is not available
in lambda's body without capturing this.
Fixes https://github.com/llvm/llvm-project/issues/71976
More information about the All-commits
mailing list