From 059fbc487c62a5e109143254b720a5dc33201a34 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 22 Jan 2022 14:50:51 +0100 Subject: indents: allow aligned_indent for unfinished calls in C and Python --- tests/indent/c/aligned_indent.c | 10 ++++++++++ tests/indent/c/func.c | 2 +- tests/indent/c/initializer_list.c | 3 +++ tests/indent/python/aligned_indent.py | 3 +++ 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/indent/c/aligned_indent.c create mode 100644 tests/indent/c/initializer_list.c (limited to 'tests') diff --git a/tests/indent/c/aligned_indent.c b/tests/indent/c/aligned_indent.c new file mode 100644 index 000000000..75555b971 --- /dev/null +++ b/tests/indent/c/aligned_indent.c @@ -0,0 +1,10 @@ +void foo(int a, + int b, + int c); + +void foo(int a, + int b + + + + diff --git a/tests/indent/c/func.c b/tests/indent/c/func.c index c188acc01..0c1ede8e0 100644 --- a/tests/indent/c/func.c +++ b/tests/indent/c/func.c @@ -21,7 +21,7 @@ int f4( } int f5(int x, - int y) + int y) { return 1; } diff --git a/tests/indent/c/initializer_list.c b/tests/indent/c/initializer_list.c new file mode 100644 index 000000000..9bf28d946 --- /dev/null +++ b/tests/indent/c/initializer_list.c @@ -0,0 +1,3 @@ +int a[] = { + 1, 2, 3, + 4}; diff --git a/tests/indent/python/aligned_indent.py b/tests/indent/python/aligned_indent.py index 2a4b827f4..b92356740 100644 --- a/tests/indent/python/aligned_indent.py +++ b/tests/indent/python/aligned_indent.py @@ -9,3 +9,6 @@ aligned_indent(1, aligned_indent(1, 2 ) + +foodsadsa(sdada, + 2 -- cgit v1.2.3-70-g09d2