[clang] [clang-format] Improve annotating star and amp (PR #194190)

via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 25 16:04:35 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 87629 tests passed
* 1497 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang-Unit
<details>
<summary>Clang-Unit.Format/_/FormatTests/76/79</summary>

```
Script(shard):
--
GTEST_OUTPUT=json:/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/Format/./FormatTests-Clang-Unit-495736-76-79.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=79 GTEST_SHARD_INDEX=76 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/Format/./FormatTests
--

Note: This is test shard 77 of 79.
[==========] Running 15 tests from 11 test suites.
[----------] Global test environment set-up.
[----------] 1 test from DefinitionBlockSeparatorTest
[ RUN      ] DefinitionBlockSeparatorTest.FormatConflict
[       OK ] DefinitionBlockSeparatorTest.FormatConflict (1 ms)
[----------] 1 test from DefinitionBlockSeparatorTest (1 ms total)

[----------] 5 tests from FormatTest
[ RUN      ] FormatTest.LayoutUnknownPPDirective
[       OK ] FormatTest.LayoutUnknownPPDirective (2 ms)
[ RUN      ] FormatTest.KeepStringLabelValuePairsOnALine
[       OK ] FormatTest.KeepStringLabelValuePairsOnALine (26 ms)
[ RUN      ] FormatTest.SkipsDeeplyNestedLines
 #0 0x0000000000b3b1a8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:880:13
 #1 0x0000000000b383e5 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
 #2 0x0000000000b3bfb1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
 #3 0x00007fbce0b3a330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
 #4 0x0000000000c0f83c std::_Sp_counted_ptr<clang::format::CommaSeparatedList*, (__gnu_cxx::_Lock_policy)2>::_M_dispose() /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:428:9
 #5 0x00000000009adcb3 _M_release /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:347:8
 #6 0x00000000009adcb3 ~__shared_count /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1071:11
 #7 0x00000000009adcb3 ~__shared_ptr /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1524:31
 #8 0x00000000009adcb3 reset /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/shared_ptr_base.h:1642:9
 #9 0x00000000009adcb3 clang::format::AnnotatedLine::~AnnotatedLine() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/../lib/Format/TokenAnnotator.h:110:21
#10 0x0000000000bfc6fa clang::format::TokenAnalyzer::process(bool) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Format/TokenAnalyzer.cpp:135:7
#11 0x0000000000bbe0b0 operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Format/Format.cpp:4266:9
#12 0x0000000000bbe0b0 __invoke_impl<std::pair<clang::tooling::Replacements, unsigned int>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Format/Format.cpp:4265:27) &, const clang::format::Environment &> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:61:14
#13 0x0000000000bbe0b0 __invoke_r<std::pair<clang::tooling::Replacements, unsigned int>, (lambda at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Format/Format.cpp:4265:27) &, const clang::format::Environment &> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:114:9
#14 0x0000000000bbe0b0 std::_Function_handler<std::pair<clang::tooling::Replacements, unsigned int> (clang::format::Environment const&), clang::format::internal::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, unsigned int, unsigned int, unsigned int, llvm::StringRef, clang::format::FormattingAttemptStatus*)::$_7>::_M_invoke(std::_Any_data const&, clang::format::Environment const&) /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:290:9
#15 0x0000000000ba2021 clang::format::internal::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, unsigned int, unsigned int, unsigned int, llvm::StringRef, clang::format::FormattingAttemptStatus*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Format/Format.cpp:4314:9
#16 0x0000000000ba30c3 _Rb_tree_impl /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:689:12
#17 0x0000000000ba30c3 _Rb_tree /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_tree.h:956:7
#18 0x0000000000ba30c3 set /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_set.h:233:7
#19 0x0000000000ba30c3 Replacements /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/Tooling/Core/Replacement.h:212:7
#20 0x0000000000ba30c3 clang::format::reformat(clang::format::FormatStyle const&, llvm::StringRef, llvm::ArrayRef<clang::tooling::Range>, llvm::StringRef, clang::format::FormattingAttemptStatus*) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Format/Format.cpp:4356:10
#21 0x00000000004f2bf1 clang::format::test::FormatTestBase::format[abi:cxx11](llvm::StringRef, std::optional<clang::format::FormatStyle> const&, clang::format::test::FormatTestBase::StatusCheck, std::vector<clang::tooling::Range, std::allocator<clang::tooling::Range>> const&) /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/unittests/Format/FormatTestBase.h:0:9
#22 0x0000000000745fbc Compare<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, nullptr> /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/include/gtest/gtest.h:1398:12
#23 0x0000000000745fbc clang::format::test::(anonymous namespace)::FormatTest_SkipsDeeplyNestedLines_Test::TestBody() /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/unittests/Format/FormatTest.cpp:15908:3
#24 0x0000000000b50ad0 os_stack_trace_getter /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:6240:7
#25 0x0000000000b50ad0 testing::Test::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:2695:9
#26 0x0000000000b518b0 os_stack_trace_getter /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:6240:7
#27 0x0000000000b518b0 testing::TestInfo::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:2842:11
#28 0x0000000000b524c3 testing::TestSuite::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:3018:35
#29 0x0000000000b636d4 testing::internal::UnitTestImpl::RunAllTests() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:5922:41
#30 0x0000000000b62a89 testing::UnitTest::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:5485:10
#31 0x0000000000b3cd9a main /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/UnitTestMain/TestMain.cpp:55:3
#32 0x00007fbce0b1f1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
#33 0x00007fbce0b1f28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
#34 0x00000000004f02a5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/Format/./FormatTests+0x4f02a5)

--
exit: -11
--
shard JSON output does not exist: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/unittests/Format/./FormatTests-Clang-Unit-495736-76-79.json
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the cfe-commits mailing list