Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[clang-format] Add BreakFunctionDeclarationParameters option.#196567

Merged
HazardyKnusperkeks merged 4 commits into
llvm:mainfrom
stativ:clang-format-BreakFunctionDeclarationParameters
May 9, 2026
Merged

[clang-format] Add BreakFunctionDeclarationParameters option.#196567
HazardyKnusperkeks merged 4 commits into
llvm:mainfrom
stativ:clang-format-BreakFunctionDeclarationParameters

Conversation

@stativ
Copy link
Copy Markdown
Contributor

@stativ stativ commented May 8, 2026

Adds an option the break function declaration parameters, always putting them on the next line after the function opening parentheses.

This is an equivalent of BreakFunctionDefinitionParameters, but for function declarations.

Adds an option the break function declaration parameters, always
putting them on the next line after the function opening parentheses.

This is an equivalent of `BreakFunctionDefinitionParameters`, but for
function declarations.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

Thank you for submitting a Pull Request (PR) to the LLVM Project!

This PR will be automatically labeled and the relevant teams will be notified.

If you wish to, you can add reviewers by using the "Reviewers" section on this page.

If this is not working for you, it is probably because you do not have write permissions for the repository. In which case you can instead tag reviewers by name in a comment by using @ followed by their GitHub username.

If you have received no comments on your PR for a week, you can request a review by "ping"ing the PR by adding a comment “Ping”. The common courtesy "ping" rate is once a week. Please remember that you are asking for valuable time from other developers.

If you have further questions, they may be answered by the LLVM GitHub User Guide.

You can also ask questions in a comment on this PR, on the LLVM Discord or on the forums.

@llvmorg-github-actions
Copy link
Copy Markdown

@llvm/pr-subscribers-clang-format

Author: stativ

Changes

Adds an option the break function declaration parameters, always putting them on the next line after the function opening parentheses.

This is an equivalent of BreakFunctionDefinitionParameters, but for function declarations.


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

6 Files Affected:

  • (modified) clang/docs/ClangFormatStyleOptions.rst (+14)
  • (modified) clang/include/clang/Format/Format.h (+16)
  • (modified) clang/lib/Format/Format.cpp (+3)
  • (modified) clang/lib/Format/TokenAnnotator.cpp (+6)
  • (modified) clang/unittests/Format/AlignBracketsTest.cpp (+9)
  • (modified) clang/unittests/Format/FormatTest.cpp (+27)
diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst
index d492f2364cf74..04d382df3f90f 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -3857,6 +3857,20 @@ the configuration (without a prefix: ``Auto``).
                        initializer2()
 
 
+.. _BreakFunctionDeclarationParameters:
+
+**BreakFunctionDeclarationParameters** (``Boolean``) :versionbadge:`clang-format 23` :ref:`¶ <BreakFunctionDeclarationParameters>`
+  If ``true``, clang-format will always break before function declaration
+  parameters.
+
+  .. code-block:: c++
+
+     true:
+     void functionDeclaration(
+              int A, int B);
+
+     false:
+     void functionDeclaration(int A, int B);
 
 .. _BreakFunctionDefinitionParameters:
 
diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h
index 98400a1609b6a..0e883837ac0e9 100644
--- a/clang/include/clang/Format/Format.h
+++ b/clang/include/clang/Format/Format.h
@@ -2644,6 +2644,20 @@ struct FormatStyle {
   /// \version 5
   BreakConstructorInitializersStyle BreakConstructorInitializers;
 
+  /// If ``true``, clang-format will always break before function declaration
+  /// parameters.
+  /// \code
+  ///    true:
+  ///    void functionDeclaration(
+  ///             int A, int B);
+  ///
+  ///    false:
+  ///    void functionDeclaration(int A, int B);
+  ///
+  /// \endcode
+  /// \version 23
+  bool BreakFunctionDeclarationParameters;
+
   /// If ``true``, clang-format will always break before function definition
   /// parameters.
   /// \code
@@ -6076,6 +6090,8 @@ struct FormatStyle {
            BreakBeforeTernaryOperators == R.BreakBeforeTernaryOperators &&
            BreakBinaryOperations == R.BreakBinaryOperations &&
            BreakConstructorInitializers == R.BreakConstructorInitializers &&
+           BreakFunctionDeclarationParameters ==
+               R.BreakFunctionDeclarationParameters &&
            BreakFunctionDefinitionParameters ==
                R.BreakFunctionDefinitionParameters &&
            BreakInheritanceList == R.BreakInheritanceList &&
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 2147a812e27c1..74b31810843fc 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -1318,6 +1318,8 @@ template <> struct MappingTraits<FormatStyle> {
     IO.mapOptional("BreakBinaryOperations", Style.BreakBinaryOperations);
     IO.mapOptional("BreakConstructorInitializers",
                    Style.BreakConstructorInitializers);
+    IO.mapOptional("BreakFunctionDeclarationParameters",
+                   Style.BreakFunctionDeclarationParameters);
     IO.mapOptional("BreakFunctionDefinitionParameters",
                    Style.BreakFunctionDefinitionParameters);
     IO.mapOptional("BreakInheritanceList", Style.BreakInheritanceList);
@@ -1885,6 +1887,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) {
   LLVMStyle.BreakBeforeTernaryOperators = true;
   LLVMStyle.BreakBinaryOperations = {FormatStyle::BBO_Never, {}};
   LLVMStyle.BreakConstructorInitializers = FormatStyle::BCIS_BeforeColon;
+  LLVMStyle.BreakFunctionDeclarationParameters = false;
   LLVMStyle.BreakFunctionDefinitionParameters = false;
   LLVMStyle.BreakInheritanceList = FormatStyle::BILS_BeforeColon;
   LLVMStyle.BreakStringLiterals = true;
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp
index 898759cb8ea1b..640f03a4ac130 100644
--- a/clang/lib/Format/TokenAnnotator.cpp
+++ b/clang/lib/Format/TokenAnnotator.cpp
@@ -5758,6 +5758,12 @@ bool TokenAnnotator::mustBreakBefore(AnnotatedLine &Line,
 
   const FormatToken &Left = *Right.Previous;
 
+  if (Style.BreakFunctionDeclarationParameters && Line.MightBeFunctionDecl &&
+      !Line.mightBeFunctionDefinition() && Left.MightBeFunctionDeclParen &&
+      Left.ParameterCount > 0) {
+    return true;
+  }
+
   if (Style.BreakFunctionDefinitionParameters && Line.MightBeFunctionDecl &&
       Line.mightBeFunctionDefinition() && Left.MightBeFunctionDeclParen &&
       Left.ParameterCount > 0) {
diff --git a/clang/unittests/Format/AlignBracketsTest.cpp b/clang/unittests/Format/AlignBracketsTest.cpp
index cd314305751e7..fcfcae20e3e11 100644
--- a/clang/unittests/Format/AlignBracketsTest.cpp
+++ b/clang/unittests/Format/AlignBracketsTest.cpp
@@ -731,6 +731,15 @@ TEST_F(AlignBracketsTest, FormatsDefinitionBreakAlways) {
                "}",
                BreakAlways);
 
+  // Ensure BreakFunctionDeclarationParameters interacts correctly when
+  // PackParameters.BinPack is set to BPPS_AlwaysOnePerLine.
+  BreakAlways.BreakFunctionDeclarationParameters = true;
+  verifyFormat("void f(\n"
+               "    int a,\n"
+               "    int b);",
+               BreakAlways);
+  BreakAlways.BreakFunctionDeclarationParameters = false;
+
   // Ensure BreakFunctionDefinitionParameters interacts correctly when
   // PackParameters.BinPack is set to BPPS_AlwaysOnePerLine.
   BreakAlways.BreakFunctionDefinitionParameters = true;
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index f5e496652e15e..4245bd1c58153 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -8119,6 +8119,33 @@ TEST_F(FormatTest, AllowAllArgumentsOnNextLine) {
                Style);
 }
 
+TEST_F(FormatTest, BreakFunctionDeclarationParameters) {
+  StringRef Input = "void functionDecl(int A, int B, int C);\n"
+                    "void emptyFunctionDecl();\n"
+                    "void functionDefinition(int A, int B, int C) {}";
+  verifyFormat(Input);
+
+  FormatStyle Style = getLLVMStyle();
+  EXPECT_FALSE(Style.BreakFunctionDeclarationParameters);
+  Style.BreakFunctionDeclarationParameters = true;
+  verifyFormat("void functionDecl(\n"
+               "    int A, int B, int C);\n"
+               "void emptyFunctionDecl();\n"
+               "void functionDefinition(int A, int B, int C) {}",
+               Input, Style);
+
+  // Test the style where all parameters are on their own lines.
+  Style.AllowAllParametersOfDeclarationOnNextLine = false;
+  Style.PackParameters.BinPack = FormatStyle::BPPS_OnePerLine;
+  verifyFormat("void functionDecl(\n"
+               "    int A,\n"
+               "    int B,\n"
+               "    int C);\n"
+               "void emptyFunctionDecl();\n"
+               "void functionDefinition(int A, int B, int C) {}",
+               Input, Style);
+}
+
 TEST_F(FormatTest, BreakFunctionDefinitionParameters) {
   StringRef Input = "void functionDecl(paramA, paramB, paramC);\n"
                     "void emptyFunctionDefinition() {}\n"

Copy link
Copy Markdown
Contributor

@HazardyKnusperkeks HazardyKnusperkeks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I see only two things are missing:

  • A config parse test
  • A note in the release notes

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

🐧 Linux x64 Test Results

  • 116118 tests passed
  • 4704 tests skipped

✅ The build succeeded and all tests passed.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

🪟 Windows x64 Test Results

  • 55505 tests passed
  • 2542 tests skipped

✅ The build succeeded and all tests passed.

@stativ
Copy link
Copy Markdown
Contributor Author

stativ commented May 9, 2026

Everything should be fixed.

I was not able to run the Clang.Format/docs_updated.test automatically because my computer cannot handle running the full test suite, but I examined the test manually and I'm quite certain the test will pass now

@stativ stativ requested a review from HazardyKnusperkeks May 9, 2026 11:30
@HazardyKnusperkeks HazardyKnusperkeks merged commit cb5d076 into llvm:main May 9, 2026
11 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2026

@stativ Congratulations on having your first Pull Request (PR) merged into the LLVM Project!

Your changes will be combined with recent changes from other authors, then tested by our build bots. If there is a problem with a build, you may receive a report in an email or a comment on this PR.

Please check whether problems have been caused by your change specifically, as the builds can include changes from many authors. It is not uncommon for your change to be included in a build that fails due to someone else's changes, or infrastructure issues.

How to do this, and the rest of the post-merge process, is covered in detail here.

If your change does cause a problem, it may be reverted, or you can revert it yourself. This is a normal part of LLVM development. You can fix your changes and open a new PR to merge them again.

If you don't get any reports, no action is required from you. Your changes are working as expected, well done!

@llvm-ci
Copy link
Copy Markdown

llvm-ci commented May 9, 2026

LLVM Buildbot has detected a new failure on builder openmp-s390x-linux running on systemz-1 while building clang at step 6 "test-openmp".

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

Here is the relevant piece of the build log for the reference
Step 6 (test-openmp) failure: test (failure)
******************** TEST 'libomp :: tasking/issue-94260-2.c' FAILED ********************
Exit Code: -11

Command Output (stdout):
--
# RUN: at line 1
/home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/./bin/clang -fopenmp   -I /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -I /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/openmp/runtime/test -L /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/runtimes/runtimes-bins/openmp/runtime/src  -fno-omit-frame-pointer -mbackchain -I /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/openmp/runtime/test/ompt /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/openmp/runtime/test/tasking/issue-94260-2.c -o /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/runtimes/runtimes-bins/openmp/runtime/test/tasking/Output/issue-94260-2.c.tmp -lm -latomic && /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/runtimes/runtimes-bins/openmp/runtime/test/tasking/Output/issue-94260-2.c.tmp
# executed command: /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/./bin/clang -fopenmp -I /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -I /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/openmp/runtime/test -L /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -fno-omit-frame-pointer -mbackchain -I /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/openmp/runtime/test/ompt /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.src/openmp/runtime/test/tasking/issue-94260-2.c -o /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/runtimes/runtimes-bins/openmp/runtime/test/tasking/Output/issue-94260-2.c.tmp -lm -latomic
# executed command: /home/uweigand/sandbox/buildbot/openmp-s390x-linux/llvm.build/runtimes/runtimes-bins/openmp/runtime/test/tasking/Output/issue-94260-2.c.tmp
# note: command had no output on stdout or stderr
# error: command failed with exit status: -11

--

********************


@llvm-ci
Copy link
Copy Markdown

llvm-ci commented May 9, 2026

LLVM Buildbot has detected a new failure on builder lldb-aarch64-windows running on linaro-armv8-windows-msvc-05 while building clang at step 6 "test".

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

Here is the relevant piece of the build log for the reference
Step 6 (test) failure: build (failure)
...
PASS: lldb-api :: functionalities/data-formatter/data-formatter-stl/generic/unique_ptr/TestDataFormatterStdUniquePtr.py (448 of 2524)
PASS: lldb-api :: functionalities/data-formatter/data-formatter-stl/generic/vbool/TestDataFormatterStdVBool.py (449 of 2524)
PASS: lldb-api :: functionalities/data-formatter/data-formatter-stl/generic/vector/TestDataFormatterStdVector.py (450 of 2524)
UNSUPPORTED: lldb-api :: functionalities/data-formatter/data-formatter-stl/generic/vector_of_enums/TestVectorOfEnums.py (451 of 2524)
PASS: lldb-api :: functionalities/data-formatter/data-formatter-stl/generic/variant/TestDataFormatterStdVariant.py (452 of 2524)
PASS: lldb-api :: functionalities/data-formatter/data-formatter-stl/libcxx-simulators/invalid-vector/TestDataFormatterLibcxxInvalidVectorSimulator.py (453 of 2524)
PASS: lldb-api :: functionalities/data-formatter/data-formatter-stl/libcxx-simulators/optional/TestDataFormatterLibcxxOptionalSimulator.py (454 of 2524)
PASS: lldb-api :: functionalities/data-formatter/data-formatter-stl/libcxx-simulators/unique_ptr/TestDataFormatterLibcxxUniquePtrSimulator.py (455 of 2524)
UNSUPPORTED: lldb-api :: functionalities/data-formatter/data-formatter-stl/libcxx/invalid-string/TestDataFormatterLibcxxInvalidString.py (456 of 2524)
UNSUPPORTED: lldb-api :: functionalities/data-formatter/data-formatter-stl/libstdcpp/invalid-variant/TestDataFormatterInvalidStdVariant.py (457 of 2524)
FAIL: lldb-api :: functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py (458 of 2524)
******************** TEST 'lldb-api :: functionalities/data-formatter/data-formatter-synth/TestDataFormatterSynth.py' FAILED ********************
Script:
--
C:/Users/tcwg/scoop/apps/python/current/python.exe C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./lib --env LLVM_INCLUDE_DIR=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/include --env LLVM_TOOLS_DIR=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin --triple aarch64-pc-windows-msvc --build-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/lldb-test-build.noindex --lldb-module-cache-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/lldb-test-build.noindex/module-cache-lldb\lldb-api --clang-module-cache-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/lldb-test-build.noindex/module-cache-clang\lldb-api --executable C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/lldb.exe --compiler C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/clang.exe --dsymutil C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/dsymutil.exe --make C:/Users/tcwg/scoop/shims/make.exe --llvm-tools-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin --lldb-obj-root C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/tools/lldb --lldb-libs-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./lib --cmake-build-type Release --skip-category=watchpoint --env LLDB_LAUNCH_FLAG_USE_PIPES=1 C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\functionalities\data-formatter\data-formatter-synth -p TestDataFormatterSynth.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project.git revision cb5d07624ef90d9b6a88987ef4316facde23c787)
  clang revision cb5d07624ef90d9b6a88987ef4316facde23c787
  llvm revision cb5d07624ef90d9b6a88987ef4316facde23c787
Skipping the following test categories: watchpoint, libc++, libstdcxx, dwo, dsym, gmodules, debugserver, objc, fork, pexpect


--
Command Output (stderr):
--
UNSUPPORTED: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_with_run_command_dsym (TestDataFormatterSynth.SynthDataFormatterTestCase.test_with_run_command_dsym) (test case does not fall in any category of interest for this run) 

FAIL: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_with_run_command_dwarf (TestDataFormatterSynth.SynthDataFormatterTestCase.test_with_run_command_dwarf)

Log Files:

 - C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\lldb-test-build.noindex\functionalities\data-formatter\data-formatter-synth\TestDataFormatterSynth\Failure_test_with_run_command_dwarf.log

UNSUPPORTED: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_with_run_command_dwo (TestDataFormatterSynth.SynthDataFormatterTestCase.test_with_run_command_dwo) (test case does not fall in any category of interest for this run) 

======================================================================

FAIL: test_with_run_command_dwarf (TestDataFormatterSynth.SynthDataFormatterTestCase.test_with_run_command_dwarf)

   Test that that file and class static variables display correctly.

----------------------------------------------------------------------

Traceback (most recent call last):


@llvm-ci
Copy link
Copy Markdown

llvm-ci commented May 9, 2026

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

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

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)
...
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
PASS: ThreadSanitizer-powerpc64le :: bench_threads.cpp (2915 of 2925)
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
PASS: ThreadSanitizer-powerpc64le :: restore_stack.cpp (2916 of 2925)
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
PASS: SanitizerCommon-msan-powerpc64le-Linux :: sanitizer_coverage_allowlist_ignorelist.cpp (2917 of 2925)
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
PASS: ThreadSanitizer-powerpc64le :: deadlock_detector_stress_test.cpp (2918 of 2925)
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
TIMEOUT: ScudoStandalone-Unit :: ./ScudoUnitTest-powerpc64le-Test/102/368 (2919 of 2925)
******************** TEST 'ScudoStandalone-Unit :: ./ScudoUnitTest-powerpc64le-Test/102/368' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-powerpc64le-Test-ScudoStandalone-Unit-3727997-102-368.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=368 GTEST_SHARD_INDEX=102 /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-powerpc64le-Test
--

Note: This is test shard 103 of 368.
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from ScudoCombinedDeathTestBasicCombined16_TestConditionVariableConfig
[ RUN      ] ScudoCombinedDeathTestBasicCombined16_TestConditionVariableConfig.BasicCombined16
[       OK ] ScudoCombinedDeathTestBasicCombined16_TestConditionVariableConfig.BasicCombined16 (1920067 ms)
[----------] 1 test from ScudoCombinedDeathTestBasicCombined16_TestConditionVariableConfig (1920067 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (1920067 ms total)
[  PASSED  ] 1 test.

--
exit: 0
--
Reached timeout of 1800 seconds
********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
TIMEOUT: ScudoStandalone-Unit :: ./ScudoUnitTest-powerpc64le-Test/101/368 (2920 of 2925)
******************** TEST 'ScudoStandalone-Unit :: ./ScudoUnitTest-powerpc64le-Test/101/368' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-powerpc64le-Test-ScudoStandalone-Unit-3727997-101-368.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=368 GTEST_SHARD_INDEX=101 /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-powerpc64le-Test
--

Note: This is test shard 102 of 368.
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from ScudoCombinedDeathTestBasicCombined16_AndroidConfig
[ RUN      ] ScudoCombinedDeathTestBasicCombined16_AndroidConfig.BasicCombined16
[       OK ] ScudoCombinedDeathTestBasicCombined16_AndroidConfig.BasicCombined16 (1919449 ms)
[----------] 1 test from ScudoCombinedDeathTestBasicCombined16_AndroidConfig (1919449 ms total)

Step 9 (test compiler-rt debug) failure: test compiler-rt debug (failure)
...
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
PASS: ThreadSanitizer-powerpc64le :: bench_threads.cpp (2915 of 2925)
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
PASS: ThreadSanitizer-powerpc64le :: restore_stack.cpp (2916 of 2925)
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
PASS: SanitizerCommon-msan-powerpc64le-Linux :: sanitizer_coverage_allowlist_ignorelist.cpp (2917 of 2925)
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
PASS: ThreadSanitizer-powerpc64le :: deadlock_detector_stress_test.cpp (2918 of 2925)
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
TIMEOUT: ScudoStandalone-Unit :: ./ScudoUnitTest-powerpc64le-Test/102/368 (2919 of 2925)
******************** TEST 'ScudoStandalone-Unit :: ./ScudoUnitTest-powerpc64le-Test/102/368' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-powerpc64le-Test-ScudoStandalone-Unit-3727997-102-368.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=368 GTEST_SHARD_INDEX=102 /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-powerpc64le-Test
--

Note: This is test shard 103 of 368.
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from ScudoCombinedDeathTestBasicCombined16_TestConditionVariableConfig
[ RUN      ] ScudoCombinedDeathTestBasicCombined16_TestConditionVariableConfig.BasicCombined16
[       OK ] ScudoCombinedDeathTestBasicCombined16_TestConditionVariableConfig.BasicCombined16 (1920067 ms)
[----------] 1 test from ScudoCombinedDeathTestBasicCombined16_TestConditionVariableConfig (1920067 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (1920067 ms total)
[  PASSED  ] 1 test.

--
exit: 0
--
Reached timeout of 1800 seconds
********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
TIMEOUT: ScudoStandalone-Unit :: ./ScudoUnitTest-powerpc64le-Test/101/368 (2920 of 2925)
******************** TEST 'ScudoStandalone-Unit :: ./ScudoUnitTest-powerpc64le-Test/101/368' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-powerpc64le-Test-ScudoStandalone-Unit-3727997-101-368.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=368 GTEST_SHARD_INDEX=101 /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/runtimes/runtimes-bins/compiler-rt/lib/scudo/standalone/tests/./ScudoUnitTest-powerpc64le-Test
--

Note: This is test shard 102 of 368.
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from ScudoCombinedDeathTestBasicCombined16_AndroidConfig
[ RUN      ] ScudoCombinedDeathTestBasicCombined16_AndroidConfig.BasicCombined16
[       OK ] ScudoCombinedDeathTestBasicCombined16_AndroidConfig.BasicCombined16 (1919449 ms)
[----------] 1 test from ScudoCombinedDeathTestBasicCombined16_AndroidConfig (1919449 ms total)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants