Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clang-format] Don't count template template parameter as declaration #95025

Merged
merged 5 commits into from
Jun 22, 2024

Conversation

rymiel
Copy link
Member

@rymiel rymiel commented Jun 10, 2024

In ContinuationIndenter::mustBreak, a break is required between a template declaration and the function/class declaration it applies to, if the template declaration spans multiple lines.

However, this also includes template template parameters, which can cause extra erroneous line breaks in some declarations.

This patch makes template template parameters not be counted as template declarations.

Fixes #93793
Fixes #48746

In ContinuationIndenter::mustBreak, a break is required between a
template declaration and the function/class declaration it applies to,
if the template declaration spans multiple lines.

However, this also includes template template parameters, which can
cause extra erroneous line breaks in some declarations.

This patch makes template template parameters not be counted as
template declarations.

Fixes llvm#93793
@llvmbot
Copy link
Collaborator

llvmbot commented Jun 10, 2024

@llvm/pr-subscribers-clang-format

Author: Emilia Kond (rymiel)

Changes

In ContinuationIndenter::mustBreak, a break is required between a template declaration and the function/class declaration it applies to, if the template declaration spans multiple lines.

However, this also includes template template parameters, which can cause extra erroneous line breaks in some declarations.

This patch makes template template parameters not be counted as template declarations.

Fixes #93793


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

2 Files Affected:

  • (modified) clang/lib/Format/TokenAnnotator.cpp (+12-3)
  • (modified) clang/unittests/Format/TokenAnnotatorTest.cpp (+17)
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp
index 1fe3b61a5a81f..9ed25d3e4c7ee 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -127,7 +127,7 @@ class AnnotatingParser {
                    SmallVector<ScopeType> &Scopes)
       : Style(Style), Line(Line), CurrentToken(Line.First), AutoFound(false),
         IsCpp(Style.isCpp()), LangOpts(getFormattingLangOpts(Style)),
-        Keywords(Keywords), Scopes(Scopes) {
+        Keywords(Keywords), Scopes(Scopes), TemplateDeclarationDepth(0) {
     assert(IsCpp == LangOpts.CXXOperatorNames);
     Contexts.push_back(Context(tok::unknown, 1, /*IsExpression=*/false));
     resetTokenMetadata();
@@ -1269,10 +1269,17 @@ class AnnotatingParser {
     if (CurrentToken && CurrentToken->is(tok::less)) {
       CurrentToken->setType(TT_TemplateOpener);
       next();
-      if (!parseAngle())
+      TemplateDeclarationDepth++;
+      if (!parseAngle()) {
+        TemplateDeclarationDepth--;
         return false;
-      if (CurrentToken)
+      }
+      TemplateDeclarationDepth--;
+      if (CurrentToken &&
+          !(TemplateDeclarationDepth > 0 &&
+            CurrentToken->isOneOf(tok::kw_typename, tok::kw_class))) {
         CurrentToken->Previous->ClosesTemplateDeclaration = true;
+      }
       return true;
     }
     return false;
@@ -3073,6 +3080,8 @@ class AnnotatingParser {
   // same decision irrespective of the decisions for tokens leading up to it.
   // Store this information to prevent this from causing exponential runtime.
   llvm::SmallPtrSet<FormatToken *, 16> NonTemplateLess;
+
+  int TemplateDeclarationDepth;
 };
 
 static const int PrecedenceUnaryOperator = prec::PointerToMember + 1;
diff --git a/clang/unittests/Format/TokenAnnotatorTest.cpp b/clang/unittests/Format/TokenAnnotatorTest.cpp
index 8cc5c239d30a1..82de72ddeeaa1 100644
--- a/clang/unittests/Format/TokenAnnotatorTest.cpp
+++ b/clang/unittests/Format/TokenAnnotatorTest.cpp
@@ -584,6 +584,23 @@ TEST_F(TokenAnnotatorTest, UnderstandsNonTemplateAngleBrackets) {
   EXPECT_TOKEN(Tokens[20], tok::greater, TT_BinaryOperator);
 }
 
+TEST_F(TokenAnnotatorTest, UnderstandsTemplateTemplateParameters) {
+  auto Tokens = annotate("template <template <typename...> typename X,\n"
+                         "          template <typename...> typename Y,\n"
+                         "          typename... T>\n"
+                         "class A {};");
+  ASSERT_EQ(Tokens.size(), 28u) << Tokens;
+  EXPECT_TOKEN(Tokens[1], tok::less, TT_TemplateOpener);
+  EXPECT_TOKEN(Tokens[3], tok::less, TT_TemplateOpener);
+  EXPECT_TOKEN(Tokens[6], tok::greater, TT_TemplateCloser);
+  EXPECT_EQ(Tokens[6]->ClosesTemplateDeclaration, 0u);
+  EXPECT_TOKEN(Tokens[11], tok::less, TT_TemplateOpener);
+  EXPECT_TOKEN(Tokens[14], tok::greater, TT_TemplateCloser);
+  EXPECT_EQ(Tokens[14]->ClosesTemplateDeclaration, 0u);
+  EXPECT_TOKEN(Tokens[21], tok::greater, TT_TemplateCloser);
+  EXPECT_EQ(Tokens[21]->ClosesTemplateDeclaration, 1u);
+}
+
 TEST_F(TokenAnnotatorTest, UnderstandsWhitespaceSensitiveMacros) {
   FormatStyle Style = getLLVMStyle();
   Style.WhitespaceSensitiveMacros.push_back("FOO");

@rymiel
Copy link
Member Author

rymiel commented Jun 10, 2024

Note: I understand my solution of adding a member variable is inelegant, I am of course open to ways on making it better

clang/lib/Format/TokenAnnotator.cpp Outdated Show resolved Hide resolved
rymiel and others added 2 commits June 11, 2024 23:35
Co-authored-by: Björn Schäpers <github@hazardy.de>
clang/lib/Format/TokenAnnotator.cpp Show resolved Hide resolved
clang/unittests/Format/TokenAnnotatorTest.cpp Outdated Show resolved Hide resolved
clang/unittests/Format/TokenAnnotatorTest.cpp Outdated Show resolved Hide resolved
clang/unittests/Format/TokenAnnotatorTest.cpp Outdated Show resolved Hide resolved
clang/unittests/Format/TokenAnnotatorTest.cpp Outdated Show resolved Hide resolved
clang/lib/Format/TokenAnnotator.cpp Outdated Show resolved Hide resolved
@rymiel rymiel merged commit 4a7bf42 into llvm:main Jun 22, 2024
4 of 6 checks passed
@rymiel rymiel deleted the clang-format/template-template branch June 22, 2024 09:52
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-ubuntu-fast running on sie-linux-worker while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/636

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/c-index-test -test-load-source all -comments-xml-schema=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/c-index-test -test-load-source all -comments-xml-schema=/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: �[0m�[0;1;31merror: �[0m�[1mCHECK: expected string not found in input
�[0m// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
�[0;1;32m          ^
�[0m�[1m<stdin>:619:1491: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
�[0;1;32m                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
�[0m�[1m<stdin>:619:1491: �[0m�[0;1;30mnote: �[0m�[1mwith "@LINE-2" equal to "78"
�[0m// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
�[0;1;32m                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
�[0m
Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
�[1m�[0m�[0;1;30m            1: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:2:9: macro definition=__llvm__ �[0m
�[0;1;30m            2: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:3:9: macro definition=__clang__ �[0m
�[0;1;30m            3: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:4:9: macro definition=__clang_major__ �[0m
�[0;1;30m            4: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:5:9: macro definition=__clang_minor__ �[0m
�[0;1;30m            5: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:6:9: macro definition=__clang_patchlevel__ �[0m
�[0;1;30m            6: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:7:9: macro definition=__clang_version__ �[0m
�[0;1;30m            7: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:8:9: macro definition=__GNUC__ �[0m
�[0;1;30m            8: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:9:9: macro definition=__GNUC_MINOR__ �[0m
�[0;1;30m            9: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:10:9: macro definition=__GNUC_PATCHLEVEL__ �[0m
�[0;1;30m           10: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:11:9: macro definition=__GXX_ABI_VERSION �[0m
�[0;1;30m           11: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:12:9: macro definition=__GNUG__ �[0m
�[0;1;30m           12: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:13:9: macro definition=__GXX_WEAK__ �[0m
�[0;1;30m           13: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:14:9: macro definition=__ATOMIC_RELAXED �[0m
�[0;1;30m           14: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:15:9: macro definition=__ATOMIC_CONSUME �[0m
�[0;1;30m           15: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:16:9: macro definition=__ATOMIC_ACQUIRE �[0m
�[0;1;30m           16: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:17:9: macro definition=__ATOMIC_RELEASE �[0m
�[0;1;30m           17: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:18:9: macro definition=__ATOMIC_ACQ_REL �[0m
�[0;1;30m           18: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:19:9: macro definition=__ATOMIC_SEQ_CST �[0m
�[0;1;30m           19: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:20:9: macro definition=__MEMORY_SCOPE_SYSTEM �[0m
�[0;1;30m           20: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:21:9: macro definition=__MEMORY_SCOPE_DEVICE �[0m
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building clang at step 6 "Add check check-clang".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/577

Here is the relevant piece of the build log for the reference:

Step 6 (Add check check-clang) failure: test (failure)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/c-index-test -test-load-source all -comments-xml-schema=/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp > /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/c-index-test -test-load-source all -comments-xml-schema=/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp < /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1478: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^
<stdin>:604:1478: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ^

Input file: <stdin>
Check file: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 
          604: // CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] 
check:80'0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          X error: no match found
check:80'1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            with "@LINE-2" equal to "78"
          605: // CHECK: CommentAST=[ 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~
          606: // CHECK: (CXComment_FullComment 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          607: // CHECK: (CXComment_Paragraph IsWhitespace 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          608: // CHECK: (CXComment_Text Text=[ ] IsWhitespace)) 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          609: // CHECK: (CXComment_TParamCommand ParamName=[AAA] ParamPosition={0} 
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder clang-ve-ninja running on hpce-ve-main while building clang at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/12/builds/510

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/ve-linux.py ...' (failure)
...
[300/306] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
[301/306] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/TokenAnnotatorTest.cpp.o
[302/306] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[303/306] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
[304/306] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
[305/306] Linking CXX executable tools/clang/unittests/Format/FormatTests
[305/306] Running the Clang regression tests
-- Testing: 20639 tests, 48 workers --
llvm-lit: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using clang: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60..
FAIL: Clang :: Index/overriding-ftemplate-comments.cpp (14126 of 20639)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/c-index-test -test-load-source all -comments-xml-schema=/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/c-index-test -test-load-source all -comments-xml-schema=/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1469: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
<stdin>:604:1469: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^

Input file: <stdin>
Check file: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 
Step 8 (check-llvm) failure: check-llvm (failure)
...
[300/306] Linking CXX executable tools/clang/unittests/Frontend/FrontendTests
[301/306] Building CXX object tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/TokenAnnotatorTest.cpp.o
[302/306] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[303/306] Linking CXX executable tools/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests
[304/306] Linking CXX executable tools/clang/unittests/Interpreter/ClangReplInterpreterTests
[305/306] Linking CXX executable tools/clang/unittests/Format/FormatTests
[305/306] Running the Clang regression tests
-- Testing: 20639 tests, 48 workers --
llvm-lit: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using clang: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/clang
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60..
FAIL: Clang :: Index/overriding-ftemplate-comments.cpp (14126 of 20639)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/c-index-test -test-load-source all -comments-xml-schema=/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/c-index-test -test-load-source all -comments-xml-schema=/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /scratch/buildbot/bothome/clang-ve-ninja/build/build_llvm/bin/FileCheck /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1469: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
<stdin>:604:1469: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^

Input file: <stdin>
Check file: /scratch/buildbot/bothome/clang-ve-ninja/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder premerge-monolithic-linux running on premerge-linux-1 while building clang at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/848

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /build/buildbot/premerge-monolithic-linux/build/bin/c-index-test -test-load-source all -comments-xml-schema=/build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /build/buildbot/premerge-monolithic-linux/build/bin/c-index-test -test-load-source all -comments-xml-schema=/build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /build/buildbot/premerge-monolithic-linux/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
/build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1470: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
<stdin>:604:1470: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^

Input file: <stdin>
Check file: /build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 
          604: // CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/build/buildbot/premerge-monolithic-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid 
check:80'0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  X~~~~~~~~~~~~~~~~ error: no match found
check:80'1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    with "@LINE-2" equal to "78"
          605: // CHECK: CommentAST=[ 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~
          606: // CHECK: (CXComment_FullComment 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          607: // CHECK: (CXComment_Paragraph IsWhitespace 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          608: // CHECK: (CXComment_Text Text=[ ] IsWhitespace)) 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          609: // CHECK: (CXComment_TParamCommand ParamName=[AAA] ParamPosition={0} 
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder arc-builder running on arc-worker while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/428

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /buildbot/worker/arc-folder/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /buildbot/worker/arc-folder/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /buildbot/worker/arc-folder/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /buildbot/worker/arc-folder/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /buildbot/worker/arc-folder/build/bin/c-index-test -test-load-source all -comments-xml-schema=/buildbot/worker/arc-folder/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /buildbot/worker/arc-folder/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /buildbot/worker/arc-folder/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /buildbot/worker/arc-folder/build/bin/c-index-test -test-load-source all -comments-xml-schema=/buildbot/worker/arc-folder/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /buildbot/worker/arc-folder/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /buildbot/worker/arc-folder/build/bin/FileCheck /buildbot/worker/arc-folder/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /buildbot/worker/arc-folder/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /buildbot/worker/arc-folder/build/bin/FileCheck /buildbot/worker/arc-folder/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
/buildbot/worker/arc-folder/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1456: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/buildbot/worker/arc-folder/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^
<stdin>:604:1456: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/buildbot/worker/arc-folder/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ^

Input file: <stdin>
Check file: /buildbot/worker/arc-folder/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 
          604: // CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/buildbot/worker/arc-folder/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid 
check:80'0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    X~~~~~~~~~~~~~~~~ error: no match found
check:80'1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      with "@LINE-2" equal to "78"
          605: // CHECK: CommentAST=[ 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~
          606: // CHECK: (CXComment_FullComment 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          607: // CHECK: (CXComment_Paragraph IsWhitespace 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          608: // CHECK: (CXComment_Text Text=[ ] IsWhitespace)) 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          609: // CHECK: (CXComment_TParamCommand ParamName=[AAA] ParamPosition={0} 
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder clang-x86_64-debian-fast running on gribozavr4 while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/659

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/c-index-test -test-load-source all -comments-xml-schema=/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp > /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/c-index-test -test-load-source all -comments-xml-schema=/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp < /b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp
/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1454: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
<stdin>:604:1454: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^

Input file: <stdin>
Check file: /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 
          604: // CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid 
check:80'0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  X~~~~~~~~~~~~~~~~ error: no match found
check:80'1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    with "@LINE-2" equal to "78"
          605: // CHECK: CommentAST=[ 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~
          606: // CHECK: (CXComment_FullComment 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          607: // CHECK: (CXComment_Paragraph IsWhitespace 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          608: // CHECK: (CXComment_Text Text=[ ] IsWhitespace)) 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          609: // CHECK: (CXComment_TParamCommand ParamName=[AAA] ParamPosition={0} 
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-libc-amdgpu-runtime running on omp-vega20-1 while building clang at step 7 "Add check check-clang".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/500

Here is the relevant piece of the build log for the reference:

Step 7 (Add check check-clang) failure: test (failure)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/c-index-test -test-load-source all -comments-xml-schema=/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp > /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/c-index-test -test-load-source all -comments-xml-schema=/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/FileCheck /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp < /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/bin/FileCheck /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1480: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^
<stdin>:604:1480: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ^

Input file: <stdin>
Check file: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 
          604: // CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid 
check:80'0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            X~~~~~~~~~~~~~~~~ error: no match found
check:80'1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              with "@LINE-2" equal to "78"
          605: // CHECK: CommentAST=[ 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~
          606: // CHECK: (CXComment_FullComment 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          607: // CHECK: (CXComment_Paragraph IsWhitespace 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          608: // CHECK: (CXComment_Text Text=[ ] IsWhitespace)) 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          609: // CHECK: (CXComment_TParamCommand ParamName=[AAA] ParamPosition={0} 
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-win running on sie-win-worker while building clang at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/444

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Index\Output\overriding-ftemplate-comments.cpp.tmp
# executed command: rm -rf 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Index\Output\overriding-ftemplate-comments.cpp.tmp'
# RUN: at line 2
mkdir Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Index\Output\overriding-ftemplate-comments.cpp.tmp
# executed command: mkdir 'Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Index\Output\overriding-ftemplate-comments.cpp.tmp'
# RUN: at line 3
z:\b\llvm-clang-x86_64-sie-win\build\bin\c-index-test.exe -test-load-source all -comments-xml-schema=Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Index/../../bindings/xml/comment-xml-schema.rng Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Index\overriding-ftemplate-comments.cpp > Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Index\Output\overriding-ftemplate-comments.cpp.tmp/out
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\c-index-test.exe' -test-load-source all '-comments-xml-schema=Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Index/../../bindings/xml/comment-xml-schema.rng' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Index\overriding-ftemplate-comments.cpp'
# RUN: at line 4
z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Index\overriding-ftemplate-comments.cpp < Z:\b\llvm-clang-x86_64-sie-win\build\tools\clang\test\Index\Output\overriding-ftemplate-comments.cpp.tmp/out
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Index\overriding-ftemplate-comments.cpp'
# .---command stderr------------
# | �[1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Index\overriding-ftemplate-comments.cpp:80:11: �[0m�[0;1;31merror: �[0m�[1mCHECK: expected string not found in input
# | �[0m// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
# | �[0;1;32m          ^
# | �[0m�[1m<stdin>:636:1459: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
# | �[0m// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Index\overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
# | �[0;1;32m                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
# | �[0m�[1m<stdin>:636:1459: �[0m�[0;1;30mnote: �[0m�[1mwith "@LINE-2" equal to "78"
# | �[0m// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Index\overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
# | �[0;1;32m                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
# | �[0m
# | Input file: <stdin>
# | Check file: Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\Index\overriding-ftemplate-comments.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# | �[1m�[0m�[0;1;30m            1: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:2:9: macro definition=__llvm__ �[0m
# | �[0;1;30m            2: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:3:9: macro definition=__clang__ �[0m
# | �[0;1;30m            3: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:4:9: macro definition=__clang_major__ �[0m
# | �[0;1;30m            4: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:5:9: macro definition=__clang_minor__ �[0m
# | �[0;1;30m            5: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:6:9: macro definition=__clang_patchlevel__ �[0m
# | �[0;1;30m            6: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:7:9: macro definition=__clang_version__ �[0m
# | �[0;1;30m            7: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:8:9: macro definition=__GNUC__ �[0m
# | �[0;1;30m            8: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:9:9: macro definition=__GNUC_MINOR__ �[0m
# | �[0;1;30m            9: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:10:9: macro definition=__GNUC_PATCHLEVEL__ �[0m
# | �[0;1;30m           10: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:11:9: macro definition=__GXX_ABI_VERSION �[0m
# | �[0;1;30m           11: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:12:9: macro definition=__GNUG__ �[0m
# | �[0;1;30m           12: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:13:9: macro definition=__GXX_WEAK__ �[0m
# | �[0;1;30m           13: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:14:9: macro definition=__ATOMIC_RELAXED �[0m
# | �[0;1;30m           14: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:15:9: macro definition=__ATOMIC_CONSUME �[0m
# | �[0;1;30m           15: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:16:9: macro definition=__ATOMIC_ACQUIRE �[0m
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder clang-cmake-x86_64-avx512-linux running on avx512-intel64 while building clang at step 7 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/133/builds/433

Here is the relevant piece of the build log for the reference:

Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/c-index-test -test-load-source all -comments-xml-schema=/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Index/overriding-ftemplate-comments.cpp > /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/c-index-test -test-load-source all -comments-xml-schema=/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Index/overriding-ftemplate-comments.cpp < /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Index/overriding-ftemplate-comments.cpp
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1485: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
<stdin>:604:1485: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^

Input file: <stdin>
Check file: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 
          604: // CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid 
check:80'0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 X~~~~~~~~~~~~~~~~ error: no match found
check:80'1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   with "@LINE-2" equal to "78"
          605: // CHECK: CommentAST=[ 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~
          606: // CHECK: (CXComment_FullComment 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          607: // CHECK: (CXComment_Paragraph IsWhitespace 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          608: // CHECK: (CXComment_Text Text=[ ] IsWhitespace)) 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          609: // CHECK: (CXComment_TParamCommand ParamName=[AAA] ParamPosition={0} 
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-gcc-ubuntu running on sie-linux-worker3 while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/450

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/c-index-test -test-load-source all -comments-xml-schema=/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/c-index-test -test-load-source all -comments-xml-schema=/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: �[0m�[0;1;31merror: �[0m�[1mCHECK: expected string not found in input
�[0m// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
�[0;1;32m          ^
�[0m�[1m<stdin>:604:1486: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
�[0;1;32m                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
�[0m�[1m<stdin>:604:1486: �[0m�[0;1;30mnote: �[0m�[1mwith "@LINE-2" equal to "78"
�[0m// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
�[0;1;32m                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ^
�[0m
Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
�[1m�[0m�[0;1;30m            1: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:2:9: macro definition=__llvm__ �[0m
�[0;1;30m            2: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:3:9: macro definition=__clang__ �[0m
�[0;1;30m            3: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:4:9: macro definition=__clang_major__ �[0m
�[0;1;30m            4: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:5:9: macro definition=__clang_minor__ �[0m
�[0;1;30m            5: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:6:9: macro definition=__clang_patchlevel__ �[0m
�[0;1;30m            6: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:7:9: macro definition=__clang_version__ �[0m
�[0;1;30m            7: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:8:9: macro definition=__GNUC__ �[0m
�[0;1;30m            8: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:9:9: macro definition=__GNUC_MINOR__ �[0m
�[0;1;30m            9: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:10:9: macro definition=__GNUC_PATCHLEVEL__ �[0m
�[0;1;30m           10: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:11:9: macro definition=__GXX_ABI_VERSION �[0m
�[0;1;30m           11: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:12:9: macro definition=__GNUG__ �[0m
�[0;1;30m           12: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:13:9: macro definition=__GXX_WEAK__ �[0m
�[0;1;30m           13: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:14:9: macro definition=__ATOMIC_RELAXED �[0m
�[0;1;30m           14: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:15:9: macro definition=__ATOMIC_CONSUME �[0m
�[0;1;30m           15: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:16:9: macro definition=__ATOMIC_ACQUIRE �[0m
�[0;1;30m           16: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:17:9: macro definition=__ATOMIC_RELEASE �[0m
�[0;1;30m           17: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:18:9: macro definition=__ATOMIC_ACQ_REL �[0m
�[0;1;30m           18: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:19:9: macro definition=__ATOMIC_SEQ_CST �[0m
�[0;1;30m           19: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:20:9: macro definition=__MEMORY_SCOPE_SYSTEM �[0m
�[0;1;30m           20: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:21:9: macro definition=__MEMORY_SCOPE_DEVICE �[0m
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-quick running on linaro-clang-aarch64-quick while building clang at step 5 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/378

Here is the relevant piece of the build log for the reference:

Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/c-index-test -test-load-source all -comments-xml-schema=/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Index/overriding-ftemplate-comments.cpp > /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/c-index-test -test-load-source all -comments-xml-schema=/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Index/overriding-ftemplate-comments.cpp < /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Index/overriding-ftemplate-comments.cpp
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:614:1467: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
<stdin>:614:1467: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^

Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          609: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          610: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          611: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          612: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          613: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 
          614: // CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid 
check:80'0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               X~~~~~~~~~~~~~~~~ error: no match found
check:80'1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 with "@LINE-2" equal to "78"
          615: // CHECK: CommentAST=[ 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~
          616: // CHECK: (CXComment_FullComment 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          617: // CHECK: (CXComment_Paragraph IsWhitespace 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          618: // CHECK: (CXComment_Text Text=[ ] IsWhitespace)) 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          619: // CHECK: (CXComment_TParamCommand ParamName=[AAA] ParamPosition={0} 
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building clang at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/459

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[1410/1412] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[1411/1412] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/wasm-ld
-- Testing: 20716 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60
FAIL: Clang :: Index/overriding-ftemplate-comments.cpp (13175 of 20716)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/c-index-test -test-load-source all -comments-xml-schema=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/c-index-test -test-load-source all -comments-xml-schema=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1467: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
<stdin>:604:1467: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 
Step 7 (check) failure: check (failure)
...
[1410/1412] Linking CXX executable tools/clang/unittests/Tooling/ToolingTests
[1411/1412] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/wasm-ld
-- Testing: 20716 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60
FAIL: Clang :: Index/overriding-ftemplate-comments.cpp (13175 of 20716)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/c-index-test -test-load-source all -comments-xml-schema=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/c-index-test -test-load-source all -comments-xml-schema=/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-jetnqeqt/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1467: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
<stdin>:604:1467: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-aarch64-darwin running on doug-worker-4 while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/506

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/c-index-test -test-load-source all -comments-xml-schema=/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/c-index-test -test-load-source all -comments-xml-schema=/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
�[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: �[0m�[0;1;31merror: �[0m�[1mCHECK: expected string not found in input
�[0m// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
�[0;1;32m          ^
�[0m�[1m<stdin>:658:1473: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
�[0;1;32m                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
�[0m�[1m<stdin>:658:1473: �[0m�[0;1;30mnote: �[0m�[1mwith "@LINE-2" equal to "78"
�[0m// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
�[0;1;32m                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ^
�[0m
Input file: <stdin>
Check file: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
�[1m�[0m�[0;1;30m            1: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:2:9: macro definition=__llvm__ �[0m
�[0;1;30m            2: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:3:9: macro definition=__clang__ �[0m
�[0;1;30m            3: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:4:9: macro definition=__clang_major__ �[0m
�[0;1;30m            4: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:5:9: macro definition=__clang_minor__ �[0m
�[0;1;30m            5: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:6:9: macro definition=__clang_patchlevel__ �[0m
�[0;1;30m            6: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:7:9: macro definition=__clang_version__ �[0m
�[0;1;30m            7: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:8:9: macro definition=__GNUC__ �[0m
�[0;1;30m            8: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:9:9: macro definition=__GNUC_MINOR__ �[0m
�[0;1;30m            9: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:10:9: macro definition=__GNUC_PATCHLEVEL__ �[0m
�[0;1;30m           10: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:11:9: macro definition=__GXX_ABI_VERSION �[0m
�[0;1;30m           11: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:12:9: macro definition=__GNUG__ �[0m
�[0;1;30m           12: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:13:9: macro definition=__GXX_WEAK__ �[0m
�[0;1;30m           13: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:14:9: macro definition=__ATOMIC_RELAXED �[0m
�[0;1;30m           14: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:15:9: macro definition=__ATOMIC_CONSUME �[0m
�[0;1;30m           15: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:16:9: macro definition=__ATOMIC_ACQUIRE �[0m
�[0;1;30m           16: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:17:9: macro definition=__ATOMIC_RELEASE �[0m
�[0;1;30m           17: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:18:9: macro definition=__ATOMIC_ACQ_REL �[0m
�[0;1;30m           18: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:19:9: macro definition=__ATOMIC_SEQ_CST �[0m
�[0;1;30m           19: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:20:9: macro definition=__MEMORY_SCOPE_SYSTEM �[0m
�[0;1;30m           20: �[0m�[1m�[0;1;46m// CHECK: <invalid loc>:21:9: macro definition=__MEMORY_SCOPE_DEVICE �[0m
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building clang at step 6 "test-build-unified-tree-check-clang".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/684

Here is the relevant piece of the build log for the reference:

Step 6 (test-build-unified-tree-check-clang) failure: test (failure)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /b/1/llvm-x86_64-debian-dylib/build/bin/c-index-test -test-load-source all -comments-xml-schema=/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /b/1/llvm-x86_64-debian-dylib/build/bin/c-index-test -test-load-source all -comments-xml-schema=/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1458: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^
<stdin>:604:1458: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ^

Input file: <stdin>
Check file: /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 
          604: // CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid 
check:80'0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      X~~~~~~~~~~~~~~~~ error: no match found
check:80'1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        with "@LINE-2" equal to "78"
          605: // CHECK: CommentAST=[ 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~
          606: // CHECK: (CXComment_FullComment 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          607: // CHECK: (CXComment_Paragraph IsWhitespace 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          608: // CHECK: (CXComment_Text Text=[ ] IsWhitespace)) 
check:80'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          609: // CHECK: (CXComment_TParamCommand ParamName=[AAA] ParamPosition={0} 
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jun 22, 2024

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-bootstrap-msan running on sanitizer-buildbot6 while building clang at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/164/builds/324

Here is the relevant piece of the build log for the reference:

Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 83381 tests, 80 workers --
Testing:  0.. 10.
FAIL: Clang :: Index/overriding-ftemplate-comments.cpp (13848 of 83381)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/c-index-test -test-load-source all -comments-xml-schema=/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/c-index-test -test-load-source all -comments-xml-schema=/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1475: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
<stdin>:604:1475: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^

Input file: <stdin>
Check file: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 
Step 10 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 83381 tests, 80 workers --
Testing:  0.. 10.
FAIL: Clang :: Index/overriding-ftemplate-comments.cpp (13848 of 83381)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/c-index-test -test-load-source all -comments-xml-schema=/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/c-index-test -test-load-source all -comments-xml-schema=/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build_msan/bin/FileCheck /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1475: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
<stdin>:604:1475: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>]
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^

Input file: <stdin>
Check file: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 
Step 13 (stage3/msan check) failure: stage3/msan check (failure)
...
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using lld-link: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using ld64.lld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:508: note: using wasm-ld: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 80736 tests, 80 workers --
Testing:  0.. 10.
FAIL: Clang :: Index/overriding-ftemplate-comments.cpp (13914 of 80736)
******************** TEST 'Clang :: Index/overriding-ftemplate-comments.cpp' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: rm -rf /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ rm -rf /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 2: mkdir /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
+ mkdir /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp
RUN: at line 3: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/c-index-test -test-load-source all -comments-xml-schema=/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp > /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/c-index-test -test-load-source all -comments-xml-schema=/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/../../bindings/xml/comment-xml-schema.rng /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
RUN: at line 4: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp < /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/tools/clang/test/Index/Output/overriding-ftemplate-comments.cpp.tmp/out
+ /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm_build2_msan/bin/FileCheck /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp
/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp:80:11: error: CHECK: expected string not found in input
// CHECK: FullCommentAsXML=[<Function templateKind="template" file="{{[^"]+}}overriding-ftemplate-comments.cpp" line="[[@LINE-2]]" column="6"><Name>comment_to_html_conversion_22</Name><USR>c:@FT@&gt;2#T#t&gt;2#T#t&gt;2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template &lt;class C1, template &lt;class C2, template &lt;class C3, class C4&gt; class BBB&gt;\n class AAA&gt;\nvoid comment_to_html_conversion_22()</Declaration><TemplateParameters><Parameter><Name>C1</Name><Index>0</Index><Discussion><Para> Ccc 1 </Para></Discussion></Parameter><Parameter><Name>AAA</Name><Index>1</Index><Discussion><Para> Zzz </Para></Discussion></Parameter><Parameter><Name>C2</Name><Discussion><Para> Ccc 2 </Para></Discussion></Parameter><Parameter><Name>C3</Name><Discussion><Para> Ccc 3 </Para></Discussion></Parameter><Parameter><Name>C4</Name><Discussion><Para> Ccc 4 </Para></Discussion></Parameter><Parameter><Name>BBB</Name><Discussion><Para> Bbb</Para></Discussion></Parameter></TemplateParameters></Function>]
          ^
<stdin>:604:1475: note: scanning from here
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
<stdin>:604:1475: note: with "@LINE-2" equal to "78"
// CHECK: overriding-ftemplate-comments.cpp:65:6: FunctionTemplate=comment_to_html_conversion_21:65:6 RawComment=[/// \tparam AAA Aaa\n/// \tparam BBB Bbb\n/// \tparam CCC Ccc\n/// \tparam DDD Ddd] RawCommentRange=[55:1 - 58:20] FullCommentAsHTML=[<dl><dt class="tparam-name-index-0">PPP</dt><dd class="tparam-descr-index-0"> Aaa </dd><dt class="tparam-name-index-other">QQQ</dt><dd class="tparam-descr-index-other"> Bbb </dd><dt class="tparam-name-index-other">RRR</dt><dd class="tparam-descr-index-other"> Ccc </dd><dt class="tparam-name-index-other">SSS</dt><dd class="tparam-descr-index-other"> Ddd</dd></dl>] FullCommentAsXML=[<Function templateKind="template" file="/b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp" line="65" column="6"><Name>comment_to_html_conversion_21</Name><USR>c:@FT@&gt;1#t&gt;2#t&gt;1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template &lt;template &lt;template &lt;typename RRR&gt; class SSS, class QQQ&gt; class PPP&gt;\nvoid comment_to_html_conversion_21()</Declaration><TemplateParameters><Parameter><Name>PPP</Name><Index>0</Index><Discussion><Para> Aaa </Para></Discussion></Parameter><Parameter><Name>QQQ</Name><Discussion><Para> Bbb </Para></Discussion></Parameter><Parameter><Name>RRR</Name><Discussion><Para> Ccc </Para></Discussion></Parameter><Parameter><Name>SSS</Name><Discussion><Para> Ddd</Para></Discussion></Parameter></TemplateParameters></Function>] CommentXMLValid
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^

Input file: <stdin>
Check file: /b/sanitizer-x86_64-linux-bootstrap-msan/build/llvm-project/clang/test/Index/overriding-ftemplate-comments.cpp

-dump-input=help explains the following input dump.

Input was:
<<<<<<
            .
            .
            .
          599: // CHECK: (CXComment_Text Text=[ Ddd]))))] Extent=[59:1 - 60:37] 
          600: // CHECK: overriding-ftemplate-comments.cpp:59:70: TemplateTemplateParameter=AAA:59:70 (Definition) Extent=[59:10 - 59:73] [access=public] 
          601: // CHECK: overriding-ftemplate-comments.cpp:59:48: TemplateTemplateParameter=DDD:59:48 (Definition) Extent=[59:19 - 59:51] [access=public] 
          602: // CHECK: overriding-ftemplate-comments.cpp:59:37: TemplateTypeParameter=CCC:59:37 (Definition) Extent=[59:28 - 59:40] [access=public] 
          603: // CHECK: overriding-ftemplate-comments.cpp:59:59: TemplateTypeParameter=BBB:59:59 (Definition) Extent=[59:53 - 59:62] [access=public] 

AlexisPerry pushed a commit to llvm-project-tlp/llvm-project that referenced this pull request Jul 9, 2024
…llvm#95025)

In ContinuationIndenter::mustBreak, a break is required between a
template declaration and the function/class declaration it applies to,
if the template declaration spans multiple lines.

However, this also includes template template parameters, which can
cause extra erroneous line breaks in some declarations.

This patch makes template template parameters not be counted as template
declarations.

Fixes llvm#93793
Fixes llvm#48746
AlexisPerry pushed a commit to llvm-project-tlp/llvm-project that referenced this pull request Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants