From 91f6ed08fe32e36d555129efa4afdd82113f0eb4 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 9 Nov 2025 19:51:04 +0800 Subject: format tests and templates --- tests/projects/c++/modules/class_cmake/src/hello_impl.cpp | 11 +++++------ tests/projects/c++/modules/class_cmake/src/main.cpp | 6 +++--- 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'tests/projects/c++/modules/class_cmake/src') diff --git a/tests/projects/c++/modules/class_cmake/src/hello_impl.cpp b/tests/projects/c++/modules/class_cmake/src/hello_impl.cpp index 5dd555a7a..b09f4b96c 100644 --- a/tests/projects/c++/modules/class_cmake/src/hello_impl.cpp +++ b/tests/projects/c++/modules/class_cmake/src/hello_impl.cpp @@ -5,10 +5,9 @@ module hello; using namespace std; namespace hello { - say::say(int data) : data_(data) { - - } - void say::hello() { - cout << "hello, say class: " << data_ << endl; - } +say::say(int data) : data_(data) { +} +void say::hello() { + cout << "hello, say class: " << data_ << endl; } +} // namespace hello diff --git a/tests/projects/c++/modules/class_cmake/src/main.cpp b/tests/projects/c++/modules/class_cmake/src/main.cpp index b96807bda..87b8b92f7 100644 --- a/tests/projects/c++/modules/class_cmake/src/main.cpp +++ b/tests/projects/c++/modules/class_cmake/src/main.cpp @@ -1,7 +1,7 @@ import hello; int main() { - hello::say s(sizeof(hello::say)); - s.hello(); - return 0; + hello::say s(sizeof(hello::say)); + s.hello(); + return 0; } -- cgit v1.3.1