summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/dependence/src/hello_impl.cpp
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-09 19:51:04 +0800
committerruki <[email protected]>2025-11-09 19:51:04 +0800
commit91f6ed08fe32e36d555129efa4afdd82113f0eb4 (patch)
tree2bfee23488c8479c83833677262ee83b9e362cbb /tests/projects/c++/modules/dependence/src/hello_impl.cpp
parentc89c94bf89e98c8e42e786aacc0b334a57474179 (diff)
format tests and templates
Diffstat (limited to 'tests/projects/c++/modules/dependence/src/hello_impl.cpp')
-rw-r--r--tests/projects/c++/modules/dependence/src/hello_impl.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/projects/c++/modules/dependence/src/hello_impl.cpp b/tests/projects/c++/modules/dependence/src/hello_impl.cpp
index 064afebad..b7f9baaa3 100644
--- a/tests/projects/c++/modules/dependence/src/hello_impl.cpp
+++ b/tests/projects/c++/modules/dependence/src/hello_impl.cpp
@@ -5,19 +5,20 @@ module hello;
import mod;
void inner() {
- std::cout << "hello world! data: "
- << mod::foo() << std::endl;
+ std::cout << "hello world! data: " << mod::foo() << std::endl;
}
namespace hello {
- int data__;
- void say_hello() { ::inner(); }
+int data__;
+void say_hello() {
+ ::inner();
+}
- say::say(int data) : data_{data} {
- }
+say::say(int data) : data_{ data } {
+}
- void say::hello() {
- hello::data__ = data_;
- ::inner();
- }
+void say::hello() {
+ hello::data__ = data_;
+ ::inner();
}
+} // namespace hello