[clang] [Clang] accept @tparam on variable template partial specializations (PR #147219)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 6 16:45:21 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- clang/lib/AST/Comment.cpp clang/test/Sema/warn-documentation.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp
index 9fd4cc942..08f860e24 100644
--- a/clang/lib/AST/Comment.cpp
+++ b/clang/lib/AST/Comment.cpp
@@ -292,7 +292,8 @@ void DeclInfo::fill() {
     break;
   }
   case Decl::VarTemplatePartialSpecialization: {
-    const VarTemplatePartialSpecializationDecl *VTPSD = cast<VarTemplatePartialSpecializationDecl>(CommentDecl);
+    const VarTemplatePartialSpecializationDecl *VTPSD =
+        cast<VarTemplatePartialSpecializationDecl>(CommentDecl);
     Kind = VariableKind;
     TemplateKind = TemplatePartialSpecialization;
     TemplateParameters = VTPSD->getTemplateParameters();

``````````

</details>


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


More information about the cfe-commits mailing list