[clang] clang-format: Correct lambda body excess indent (PR #213169)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 30 16:51:20 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 55877 tests passed
* 1447 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang-Unit
<details>
<summary>Clang-Unit.Format/_/FormatTests_exe/FormatTest/LayoutBlockInsideParens</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Format\.\FormatTests.exe --gtest_filter=FormatTest.LayoutBlockInsideParens
--
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestBase.h:90
Expected equality of these values:
ExpectedCode
Which is: "functionA(functionB({\n int i;\n int j;\n }),\n aaaa, bbbb, cccc);"
FormattedCode
Which is: "functionA(functionB({\n int i;\n int j;\n}),\n aaaa, bbbb, cccc);"
With diff:
@@ -1,5 +1,5 @@
functionA(functionB({
- int i;
- int j;
- }),
+ int i;
+ int j;
+}),
aaaa, bbbb, cccc);
Google Test trace:
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTest.cpp(7021): functionA(functionB({
int i;
int j;
}),
aaaa, bbbb, cccc);
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestBase.h:90
Expected equality of these values:
ExpectedCode
Which is: "functionA(functionB({\n int i;\n int j;\n }),\n aaaa, bbbb, // comment\n cccc);"
FormattedCode
Which is: "functionA(functionB({\n int i;\n int j;\n}),\n aaaa, bbbb, // comment\n cccc);"
With diff:
@@ -1,6 +1,6 @@
functionA(functionB({
- int i;
- int j;
- }),
+ int i;
+ int j;
+}),
aaaa, bbbb, // comment
cccc);
Google Test trace:
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTest.cpp(7034): functionA(functionB({
int i;
int j;
}),
aaaa, bbbb, // comment
cccc);
```
</details>
<details>
<summary>Clang-Unit.Format/_/FormatTests_exe/FormatTestMacroExpansion/IndentChildrenWithinMacroCall</summary>
```
Script:
--
C:\_work\llvm-project\llvm-project\build\tools\clang\unittests\Format\.\FormatTests.exe --gtest_filter=FormatTestMacroExpansion.IndentChildrenWithinMacroCall
--
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestBase.h:90
Expected equality of these values:
ExpectedCode
Which is: "void f() {\n MACRO(a b, call([] {\n if (expr) {\n indent();\n }\n }));\n}"
FormattedCode
Which is: "void f() {\n MACRO(a b, call([] {\n if (expr) {\n indent();\n }\n }));\n}"
With diff:
@@ -1,7 +1,7 @@
void f() {
MACRO(a b, call([] {
- if (expr) {
- indent();
- }
- }));
+ if (expr) {
+ indent();
+ }
+ }));
}
Google Test trace:
C:\_work\llvm-project\llvm-project\clang\unittests\Format\FormatTestMacroExpansion.cpp(301): void f() {
MACRO(a b, call([] {
if (expr) {
indent();
}
}));
}
```
</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/213169
More information about the cfe-commits
mailing list