diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-22 14:07:01 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-05 18:54:55 +0100 |
| commit | 62982378b81ce91d5cdf70047113e51e13434286 (patch) | |
| tree | 28dacb8eede933202f85860846138cb7afa40b52 /tests | |
| parent | 7654bbc04bf6b51e583d5241dab62f48ee564b93 (diff) | |
indents(cpp): indent at field_initializer_list
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/indent/cpp/initializer_list.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/indent/cpp/initializer_list.cpp b/tests/indent/cpp/initializer_list.cpp new file mode 100644 index 00000000..5a27d17f --- /dev/null +++ b/tests/indent/cpp/initializer_list.cpp @@ -0,0 +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) : + m_a(a), + m_b(b), + m_c(c) + {} + + int m_a, m_b, m_c, m_d; +}; + |
