[PATCH] D35783: Ignore shadowing for declarations coming from within macros.
Roman Lebedev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 25 01:18:56 PDT 2017
lebedev.ri added a comment.
How does this relate to the gcc behavior?
I suspect not everyone would want to have this relaxed `-Wshadow` mode.
Perhaps it could be hidden under some new flag, which is not going to be automatically enabled by `-Weverything`.
Like, `-Wshadow-in-macros` which does nothing compared to `-Wshadow`, and then `-Wno-shadow-in-macros` which enables this relaxed mode?
https://reviews.llvm.org/D35783
More information about the cfe-commits
mailing list