[PATCH] D151214: [clang][Sema] `-Wshadow` warns about shadowings by static local variables
Takuya Shimizu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 23 07:40:46 PDT 2023
hazohelet created this revision.
hazohelet added reviewers: aaron.ballman, tbaeder, shafik.
Herald added a project: All.
hazohelet requested review of this revision.
Herald added a project: clang.
This patch makes `-Wshadow` warn about the shadowings by static local variables.
Fixes https://github.com/llvm/llvm-project/issues/62850
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151214
Files:
clang/docs/ReleaseNotes.rst
clang/lib/Sema/SemaDecl.cpp
clang/test/Sema/warn-shadow.c
clang/test/SemaCXX/warn-shadow-in-lambdas.cpp
clang/test/SemaCXX/warn-shadow.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151214.524709.patch
Type: text/x-patch
Size: 7473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230523/86d84224/attachment-0001.bin>
More information about the cfe-commits
mailing list