[clang] [clang][Sema] Fix false positive -Wshadow with structured binding captures (PR #157667)

Ivan Murashko via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 10 08:19:53 PDT 2025


================
@@ -8410,6 +8410,7 @@ NamedDecl *Sema::getShadowedDeclaration(const VarDecl *D,
     return nullptr;
 
   NamedDecl *ShadowedDecl = R.getFoundDecl();
+
----------------
ivanmurashko wrote:

> Seems unrelated.

Restored at 27fc9b7095e6ab993782e121e1ff1a3776b2ab0a

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


More information about the cfe-commits mailing list