[clang] [llvm] [clang-format]: Add `Custom` to `ShortFunctionStyle`; add new AllowShortFunctionsOnASingleLineOptions for granular setup (PR #134337)

via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 14 20:26:32 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 3105 tests passed
* 29 tests skipped

All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.

<details>
<summary>[code=1] tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestCSharp.cpp.obj</summary>

```
FAILED: [code=1] tools/clang/unittests/Format/CMakeFiles/FormatTests.dir/FormatTestCSharp.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DLLVM_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Format -IC:\_work\llvm-project\llvm-project\clang\unittests\Format -IC:\_work\llvm-project\llvm-project\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\clang\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include -IC:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include -IC:\_work\llvm-project\llvm-project\third-party\unittest\googlemock\include /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG -Wno-gnu-zero-variadic-macro-arguments /EHs-c- /GR- -Wno-suggest-override /showIncludes /Fotools\clang\unittests\Format\CMakeFiles\FormatTests.dir\FormatTestCSharp.cpp.obj /Fdtools\clang\unittests\Format\CMakeFiles\FormatTests.dir\ -c -- C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1748,7): error: redefinition of 'FormatTestCSharp'
1748 | class FormatTestCSharp : public test::FormatTestBase {
|       ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(18,7): note: previous definition is here
18 | class FormatTestCSharp : public test::FormatTestBase {
|       ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1779,1): error: redefinition of 'FormatTestCSharp_CSharpClass_Test'
1779 | TEST_F(FormatTestCSharp, CSharpClass) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1526,9): note: expanded from macro 'GTEST_TEST_'
1526 |   class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)                     \
|         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1518,3): note: expanded from macro 'GTEST_TEST_CLASS_NAME_'
1518 |   test_suite_name##_##test_name##_Test
|   ^
<scratch space>(69,1): note: expanded from here
69 | FormatTestCSharp_CSharpClass_Test
| ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(49,1): note: previous definition is here
49 | TEST_F(FormatTestCSharp, CSharpClass) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1526,9): note: expanded from macro 'GTEST_TEST_'
1526 |   class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)                     \
|         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1518,3): note: expanded from macro 'GTEST_TEST_CLASS_NAME_'
1518 |   test_suite_name##_##test_name##_Test
|   ^
<scratch space>(29,1): note: expanded from here
29 | FormatTestCSharp_CSharpClass_Test
| ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1779,1): error: redefinition of 'test_info_'
1779 | TEST_F(FormatTestCSharp, CSharpClass) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1548,65): note: expanded from macro 'GTEST_TEST_'
1548 |                                                     test_name)::test_info_ =   \
|                                                                 ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(49,1): note: previous definition is here
49 | TEST_F(FormatTestCSharp, CSharpClass) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1548,65): note: expanded from macro 'GTEST_TEST_'
1548 |                                                     test_name)::test_info_ =   \
|                                                                 ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1779,1): error: redefinition of 'TestBody'
1779 | TEST_F(FormatTestCSharp, CSharpClass) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1558,60): note: expanded from macro 'GTEST_TEST_'
1558 |   void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
|                                                            ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(49,1): note: previous definition is here
49 | TEST_F(FormatTestCSharp, CSharpClass) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1558,60): note: expanded from macro 'GTEST_TEST_'
1558 |   void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
|                                                            ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1825,1): error: redefinition of 'FormatTestCSharp_AccessModifiers_Test'
1825 | TEST_F(FormatTestCSharp, AccessModifiers) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1526,9): note: expanded from macro 'GTEST_TEST_'
1526 |   class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)                     \
|         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1518,3): note: expanded from macro 'GTEST_TEST_CLASS_NAME_'
1518 |   test_suite_name##_##test_name##_Test
|   ^
<scratch space>(7,1): note: expanded from here
7 | FormatTestCSharp_AccessModifiers_Test
| ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(95,1): note: previous definition is here
95 | TEST_F(FormatTestCSharp, AccessModifiers) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1526,9): note: expanded from macro 'GTEST_TEST_'
1526 |   class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)                     \
|         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1518,3): note: expanded from macro 'GTEST_TEST_CLASS_NAME_'
1518 |   test_suite_name##_##test_name##_Test
|   ^
<scratch space>(93,1): note: expanded from here
93 | FormatTestCSharp_AccessModifiers_Test
| ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1825,1): error: redefinition of 'test_info_'
1825 | TEST_F(FormatTestCSharp, AccessModifiers) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1548,65): note: expanded from macro 'GTEST_TEST_'
1548 |                                                     test_name)::test_info_ =   \
|                                                                 ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(95,1): note: previous definition is here
95 | TEST_F(FormatTestCSharp, AccessModifiers) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1548,65): note: expanded from macro 'GTEST_TEST_'
1548 |                                                     test_name)::test_info_ =   \
|                                                                 ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1825,1): error: redefinition of 'TestBody'
1825 | TEST_F(FormatTestCSharp, AccessModifiers) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1558,60): note: expanded from macro 'GTEST_TEST_'
1558 |   void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
|                                                            ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(95,1): note: previous definition is here
95 | TEST_F(FormatTestCSharp, AccessModifiers) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1558,60): note: expanded from macro 'GTEST_TEST_'
1558 |   void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
|                                                            ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1857,1): error: redefinition of 'FormatTestCSharp_NoStringLiteralBreaks_Test'
1857 | TEST_F(FormatTestCSharp, NoStringLiteralBreaks) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1526,9): note: expanded from macro 'GTEST_TEST_'
1526 |   class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)                     \
|         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1518,3): note: expanded from macro 'GTEST_TEST_CLASS_NAME_'
1518 |   test_suite_name##_##test_name##_Test
|   ^
<scratch space>(77,1): note: expanded from here
77 | FormatTestCSharp_NoStringLiteralBreaks_Test
| ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(127,1): note: previous definition is here
127 | TEST_F(FormatTestCSharp, NoStringLiteralBreaks) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1526,9): note: expanded from macro 'GTEST_TEST_'
1526 |   class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)                     \
|         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1518,3): note: expanded from macro 'GTEST_TEST_CLASS_NAME_'
1518 |   test_suite_name##_##test_name##_Test
|   ^
<scratch space>(36,1): note: expanded from here
36 | FormatTestCSharp_NoStringLiteralBreaks_Test
| ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1857,1): error: redefinition of 'test_info_'
1857 | TEST_F(FormatTestCSharp, NoStringLiteralBreaks) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1548,65): note: expanded from macro 'GTEST_TEST_'
1548 |                                                     test_name)::test_info_ =   \
|                                                                 ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(127,1): note: previous definition is here
127 | TEST_F(FormatTestCSharp, NoStringLiteralBreaks) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1548,65): note: expanded from macro 'GTEST_TEST_'
1548 |                                                     test_name)::test_info_ =   \
|                                                                 ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1857,1): error: redefinition of 'TestBody'
1857 | TEST_F(FormatTestCSharp, NoStringLiteralBreaks) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1558,60): note: expanded from macro 'GTEST_TEST_'
1558 |   void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
|                                                            ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(127,1): note: previous definition is here
127 | TEST_F(FormatTestCSharp, NoStringLiteralBreaks) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1558,60): note: expanded from macro 'GTEST_TEST_'
1558 |   void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
|                                                            ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1868,1): error: redefinition of 'FormatTestCSharp_StringLiteralBreaks_Test'
1868 | TEST_F(FormatTestCSharp, StringLiteralBreaks) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1526,9): note: expanded from macro 'GTEST_TEST_'
1526 |   class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)                     \
|         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1518,3): note: expanded from macro 'GTEST_TEST_CLASS_NAME_'
1518 |   test_suite_name##_##test_name##_Test
|   ^
<scratch space>(18,1): note: expanded from here
18 | FormatTestCSharp_StringLiteralBreaks_Test
| ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(138,1): note: previous definition is here
138 | TEST_F(FormatTestCSharp, StringLiteralBreaks) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1526,9): note: expanded from macro 'GTEST_TEST_'
1526 |   class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)                     \
|         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1518,3): note: expanded from macro 'GTEST_TEST_CLASS_NAME_'
1518 |   test_suite_name##_##test_name##_Test
|   ^
<scratch space>(90,1): note: expanded from here
90 | FormatTestCSharp_StringLiteralBreaks_Test
| ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1868,1): error: redefinition of 'test_info_'
1868 | TEST_F(FormatTestCSharp, StringLiteralBreaks) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1548,65): note: expanded from macro 'GTEST_TEST_'
1548 |                                                     test_name)::test_info_ =   \
|                                                                 ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(138,1): note: previous definition is here
138 | TEST_F(FormatTestCSharp, StringLiteralBreaks) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1548,65): note: expanded from macro 'GTEST_TEST_'
1548 |                                                     test_name)::test_info_ =   \
|                                                                 ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1868,1): error: redefinition of 'TestBody'
1868 | TEST_F(FormatTestCSharp, StringLiteralBreaks) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1558,60): note: expanded from macro 'GTEST_TEST_'
1558 |   void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
|                                                            ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(138,1): note: previous definition is here
138 | TEST_F(FormatTestCSharp, StringLiteralBreaks) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1558,60): note: expanded from macro 'GTEST_TEST_'
1558 |   void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
|                                                            ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1919,1): error: redefinition of 'FormatTestCSharp_CSharpVerbatiumStringLiterals_Test'
1919 | TEST_F(FormatTestCSharp, CSharpVerbatiumStringLiterals) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1526,9): note: expanded from macro 'GTEST_TEST_'
1526 |   class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)                     \
|         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1518,3): note: expanded from macro 'GTEST_TEST_CLASS_NAME_'
1518 |   test_suite_name##_##test_name##_Test
|   ^
<scratch space>(82,1): note: expanded from here
82 | FormatTestCSharp_CSharpVerbatiumStringLiterals_Test
| ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(189,1): note: previous definition is here
189 | TEST_F(FormatTestCSharp, CSharpVerbatiumStringLiterals) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1526,9): note: expanded from macro 'GTEST_TEST_'
1526 |   class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)                     \
|         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1518,3): note: expanded from macro 'GTEST_TEST_CLASS_NAME_'
1518 |   test_suite_name##_##test_name##_Test
|   ^
<scratch space>(43,1): note: expanded from here
43 | FormatTestCSharp_CSharpVerbatiumStringLiterals_Test
| ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1919,1): error: redefinition of 'test_info_'
1919 | TEST_F(FormatTestCSharp, CSharpVerbatiumStringLiterals) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1548,65): note: expanded from macro 'GTEST_TEST_'
1548 |                                                     test_name)::test_info_ =   \
|                                                                 ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(189,1): note: previous definition is here
189 | TEST_F(FormatTestCSharp, CSharpVerbatiumStringLiterals) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1548,65): note: expanded from macro 'GTEST_TEST_'
1548 |                                                     test_name)::test_info_ =   \
|                                                                 ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1919,1): error: redefinition of 'TestBody'
1919 | TEST_F(FormatTestCSharp, CSharpVerbatiumStringLiterals) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1558,60): note: expanded from macro 'GTEST_TEST_'
1558 |   void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
|                                                            ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(189,1): note: previous definition is here
189 | TEST_F(FormatTestCSharp, CSharpVerbatiumStringLiterals) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1558,60): note: expanded from macro 'GTEST_TEST_'
1558 |   void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
|                                                            ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1934,1): error: redefinition of 'FormatTestCSharp_CSharpInterpolatedStringLiterals_Test'
1934 | TEST_F(FormatTestCSharp, CSharpInterpolatedStringLiterals) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1526,9): note: expanded from macro 'GTEST_TEST_'
1526 |   class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)                     \
|         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1518,3): note: expanded from macro 'GTEST_TEST_CLASS_NAME_'
1518 |   test_suite_name##_##test_name##_Test
|   ^
<scratch space>(28,1): note: expanded from here
28 | FormatTestCSharp_CSharpInterpolatedStringLiterals_Test
| ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(204,1): note: previous definition is here
204 | TEST_F(FormatTestCSharp, CSharpInterpolatedStringLiterals) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1526,9): note: expanded from macro 'GTEST_TEST_'
1526 |   class GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)                     \
|         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1518,3): note: expanded from macro 'GTEST_TEST_CLASS_NAME_'
1518 |   test_suite_name##_##test_name##_Test
|   ^
<scratch space>(97,1): note: expanded from here
97 | FormatTestCSharp_CSharpInterpolatedStringLiterals_Test
| ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1934,1): error: redefinition of 'test_info_'
1934 | TEST_F(FormatTestCSharp, CSharpInterpolatedStringLiterals) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1548,65): note: expanded from macro 'GTEST_TEST_'
1548 |                                                     test_name)::test_info_ =   \
|                                                                 ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(204,1): note: previous definition is here
204 | TEST_F(FormatTestCSharp, CSharpInterpolatedStringLiterals) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1548,65): note: expanded from macro 'GTEST_TEST_'
1548 |                                                     test_name)::test_info_ =   \
|                                                                 ^
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestCSharp.cpp(1934,1): error: redefinition of 'TestBody'
1934 | TEST_F(FormatTestCSharp, CSharpInterpolatedStringLiterals) {
| ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2208,41): note: expanded from macro 'TEST_F'
2208 | #define TEST_F(test_fixture, test_name) GTEST_TEST_F(test_fixture, test_name)
|                                         ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/gtest.h(2205,3): note: expanded from macro 'GTEST_TEST_F'
2205 |   GTEST_TEST_(test_fixture, test_name, test_fixture, \
|   ^
C:\_work\llvm-project\llvm-project\third-party\unittest\googletest\include\gtest/internal/gtest-internal.h(1558,60): note: expanded from macro 'GTEST_TEST_'
1558 |   void GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)::TestBody()
|                                                            ^
```
</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/134337


More information about the cfe-commits mailing list