aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/unittest/clangformat-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/unittest/clangformat-test.cpp')
-rw-r--r--tests/unit/unittest/clangformat-test.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/unit/unittest/clangformat-test.cpp b/tests/unit/unittest/clangformat-test.cpp
index 172afb64c8..822f4b76d2 100644
--- a/tests/unit/unittest/clangformat-test.cpp
+++ b/tests/unit/unittest/clangformat-test.cpp
@@ -198,7 +198,14 @@ TEST_F(ClangFormat, IndentLambdaWithReturnType)
"}"));
}
-TEST_F(ClangFormat, IndentFunctionArgumentLambdaWithNextLineScope)
+#ifndef KEEP_LINE_BREAKS_FOR_NON_EMPTY_LINES_BACKPORTED
+# define DISABLED_FOR_VANILLA_CLANG(x) DISABLED_##x
+#else
+# define DISABLED_FOR_VANILLA_CLANG(x) x
+#endif
+
+// This test requires the custom clang patch https://code.qt.io/cgit/clang/llvm-project.git/commit/?h=release_100-based&id=9b992a0f7f160dd6c75f20a4dcfcf7c60a4894df
+TEST_F(ClangFormat, DISABLED_FOR_VANILLA_CLANG(IndentFunctionArgumentLambdaWithNextLineScope))
{
insertLines({"foo([]()",
"{",