diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-22 17:07:25 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-05 18:54:55 +0100 |
| commit | b9c38a48cad935e01b96fc11df94763c85c98ee9 (patch) | |
| tree | e39206a6bd64fc73a52a033a8747be5461dc6a03 /tests/indent | |
| parent | indents: allow aligned_indent for unfinished calls in C and Python (diff) | |
| download | nvim-treesitter-b9c38a48cad935e01b96fc11df94763c85c98ee9.tar nvim-treesitter-b9c38a48cad935e01b96fc11df94763c85c98ee9.tar.gz nvim-treesitter-b9c38a48cad935e01b96fc11df94763c85c98ee9.tar.bz2 nvim-treesitter-b9c38a48cad935e01b96fc11df94763c85c98ee9.tar.lz nvim-treesitter-b9c38a48cad935e01b96fc11df94763c85c98ee9.tar.xz nvim-treesitter-b9c38a48cad935e01b96fc11df94763c85c98ee9.tar.zst nvim-treesitter-b9c38a48cad935e01b96fc11df94763c85c98ee9.zip | |
indents: refactor hanging indent
Diffstat (limited to 'tests/indent')
| -rw-r--r-- | tests/indent/c/initializer_list.c | 3 | ||||
| -rw-r--r-- | tests/indent/cpp/initializer_list.cpp | 22 |
2 files changed, 11 insertions, 14 deletions
diff --git a/tests/indent/c/initializer_list.c b/tests/indent/c/initializer_list.c deleted file mode 100644 index 9bf28d946..000000000 --- a/tests/indent/c/initializer_list.c +++ /dev/null @@ -1,3 +0,0 @@ -int a[] = { - 1, 2, 3, - 4}; diff --git a/tests/indent/cpp/initializer_list.cpp b/tests/indent/cpp/initializer_list.cpp index 5a27d17f5..d34ed025c 100644 --- a/tests/indent/cpp/initializer_list.cpp +++ b/tests/indent/cpp/initializer_list.cpp @@ -1,17 +1,17 @@ class Foo { - Foo(int a, int b, int c, int d) - : m_a(a) - , m_b(b) - , m_c(c) - , m_d(d) {} + Foo(int a, int b, int c, int d) + : m_a(a) + , m_b(b) + , m_c(c) + , m_d(d) {} - Foo(int a, int b, int c) : - m_a(a), - m_b(b), - m_c(c) - {} + Foo(int a, int b, int c) : + m_a(a), + m_b(b), + m_c(c) + {} - int m_a, m_b, m_c, m_d; + int m_a, m_b, m_c, m_d; }; |
