[clang] [Clang][Parse] Diagnose member template declarations with multiple declarators (PR #78243)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 16 01:31:25 PST 2024


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 f725bb960d45ada3cc4667dd7aa22792d389c7e7 44c582f0e23725b28b46c07bdb0d2991ebb7d204 -- clang/lib/Parse/ParseDeclCXX.cpp clang/test/CXX/temp/p3.cpp clang/test/OpenMP/declare_simd_messages.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp
index 36a9ef199a..03a7ac3205 100644
--- a/clang/lib/Parse/ParseDeclCXX.cpp
+++ b/clang/lib/Parse/ParseDeclCXX.cpp
@@ -3170,7 +3170,7 @@ Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS,
     if (TemplateInfo.Kind != ParsedTemplateInfo::NonTemplate) {
       if (Tok.is(tok::comma)) {
         Diag(Tok, diag::err_multiple_template_declarators)
-          << (int)TemplateInfo.Kind;
+            << (int)TemplateInfo.Kind;
         SkipUntil(tok::semi, StopBeforeMatch);
       }
       break;

``````````

</details>


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


More information about the cfe-commits mailing list