This patch makes -Wshadow warn about the shadowings by static local variables.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/docs/ReleaseNotes.rst | ||
---|---|---|
300 |
Comment Actions
LGTM
clang/test/SemaCXX/warn-shadow.cpp | ||
---|---|---|
33 | Note. it looks like gcc does not warn on shadowing for anonymous namespaces. I think it makes sense to warn in this case. |