From 15f0813b6e0682e3f2c3b611610f6ef67cc87449 Mon Sep 17 00:00:00 2001 From: Jędrzej Boczar Date: Sat, 17 Apr 2021 22:47:02 +0200 Subject: tests/indent: add multiple C/C++ tests --- lua/tests/indent/cpp/access.cpp | 6 ++++++ lua/tests/indent/cpp/class.cpp | 7 +++++++ lua/tests/indent/cpp/stream.cpp | 7 +++++++ 3 files changed, 20 insertions(+) create mode 100644 lua/tests/indent/cpp/access.cpp create mode 100644 lua/tests/indent/cpp/class.cpp create mode 100644 lua/tests/indent/cpp/stream.cpp (limited to 'lua/tests/indent/cpp') diff --git a/lua/tests/indent/cpp/access.cpp b/lua/tests/indent/cpp/access.cpp new file mode 100644 index 000000000..abdb846ce --- /dev/null +++ b/lua/tests/indent/cpp/access.cpp @@ -0,0 +1,6 @@ +class Foo { +public: + int x; +private: + int y; +}; diff --git a/lua/tests/indent/cpp/class.cpp b/lua/tests/indent/cpp/class.cpp new file mode 100644 index 000000000..cd8382190 --- /dev/null +++ b/lua/tests/indent/cpp/class.cpp @@ -0,0 +1,7 @@ +class Foo { + int x; + class Bar { + int y; + }; + Bar z; +}; diff --git a/lua/tests/indent/cpp/stream.cpp b/lua/tests/indent/cpp/stream.cpp new file mode 100644 index 000000000..a619dfa69 --- /dev/null +++ b/lua/tests/indent/cpp/stream.cpp @@ -0,0 +1,7 @@ +#include + +void foo(int x) { + std::cout << x + << x + 1 + << x + 2; +} -- cgit v1.2.3-70-g09d2