Clang: Disable a clangformat test for vanilla clang

...that requires a custom patch to work.

Change-Id: I954286f47112b660dc6ee681dac2250a9e8da0df
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Nikolai Kosjar
2020-05-22 10:18:48 +02:00
parent 8df8502090
commit 0bf7bacb4f

View File

@@ -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([]()",
"{",