[clang] [clang][Sema] Fix false-positive -Wshadow for friend functions (PR #221249)

ahmed mohamed kamel via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 15 04:54:18 PDT 2026


================
@@ -492,6 +492,8 @@ features cannot lower the translation-unit ABI level;
   `operator delete`, since such a delete expression never invokes the
   destructor. (#GH65524)
 
+- Fixed a false-positive `-Wshadow` warning when a function parameter in an inline-defined friend function shares the name of a non-static class member variable. (#GH221190)
----------------
AhmedKamel10 wrote:

Updated.

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


More information about the cfe-commits mailing list