[clang] [clang-tools-extra] [Clang][Sema] Clarify structured binding diagnostic when initializer is missing (PR #181803)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 17 04:46:47 PST 2026


================
@@ -245,6 +245,10 @@ Improvements to Clang's diagnostics
 - The ``-Wloop-analysis`` warning has been extended to catch more cases of
   variable modification inside lambda expressions (#GH132038).
 
+- Improved the diagnostic for structured binding declarations missing an
+  initializer to tell the user what is expected (``=``, ``(``, or a braced
+  initializer list). (#GH90107)
----------------
zwuis wrote:

What's the problem described in this issue?

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


More information about the cfe-commits mailing list