[clang] Fixing typo in the 'BindingDecl' documentation (PR #249429)

via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 6 06:26:50 PST 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Pedro da Rosa Pinheiro (pedropiin)

<details>
<summary>Changes</summary>

## What
As per comments on #<!-- -->245430 , moving the typo fix to a separate PR.

---
Full diff: https://github.com/llvm/llvm-project/pull/249429.diff


1 Files Affected:

- (modified) clang/include/clang/AST/DeclCXX.h (+1-1) 


``````````diff
diff --git a/clang/include/clang/AST/DeclCXX.h b/clang/include/clang/AST/DeclCXX.h
index ddb64fe0a40c35..c8665937dd2cc3 100644
--- a/clang/include/clang/AST/DeclCXX.h
+++ b/clang/include/clang/AST/DeclCXX.h
@@ -4227,7 +4227,7 @@ class StaticAssertDecl : public Decl {
 ///   auto &[a, b, c] = n;
 ///
 /// a, b, and c are BindingDecls, whose bindings are the expressions
-/// x[0], x[1], and x[2] respectively, where x is the implicit
+/// n[0], n[1], and n[2] respectively, where x is the implicit
 /// DecompositionDecl of type 'int (&)[3]'.
 class BindingDecl : public ValueDecl {
   /// The declaration that this binding binds to part of.

``````````

</details>


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


More information about the cfe-commits mailing list