[clang] [clang-format] Don't count template template parameter as declaration (PR #95025)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 22 03:15:25 PDT 2024
llvm-ci wrote:
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@>2#T#t>2#T#t>2#T#Tcomment_to_html_conversion_22#v#</USR><Declaration>template <class C1, template <class C2, template <class C3, class C4> class BBB>\n class AAA>\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@>1#t>2#t>1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template <template <template <typename RRR> class SSS, class QQQ> class PPP>\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@>1#t>2#t>1#T#Tcomment_to_html_conversion_21#v#</USR><Declaration>template <template <template <typename RRR> class SSS, class QQQ> class PPP>\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
...
```
https://github.com/llvm/llvm-project/pull/95025
More information about the cfe-commits
mailing list