summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/phony2
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-10 06:35:04 +0800
committerGitHub <[email protected]>2025-11-10 06:35:04 +0800
commit2b01e46fcf619aaecb8435b0fac975e3aff0587f (patch)
tree8f005a8dfc3272e9f027560e5e1b5881a7a8bc70 /tests/projects/c++/modules/phony2
parenta1b0ec856e2c22aac84022feb05b6687912e3d6e (diff)
parent2c387895657ae13cd717d7f42f5baed5eb028a8e (diff)
Merge pull request #7008 from xmake-io/format
format code
Diffstat (limited to 'tests/projects/c++/modules/phony2')
-rw-r--r--tests/projects/c++/modules/phony2/include/foo.h4
-rw-r--r--tests/projects/c++/modules/phony2/src/hello.cpp11
2 files changed, 8 insertions, 7 deletions
diff --git a/tests/projects/c++/modules/phony2/include/foo.h b/tests/projects/c++/modules/phony2/include/foo.h
index e66099202..025d24b7c 100644
--- a/tests/projects/c++/modules/phony2/include/foo.h
+++ b/tests/projects/c++/modules/phony2/include/foo.h
@@ -1 +1,3 @@
-inline int foo() { return 5; }
+inline int foo() {
+ return 5;
+}
diff --git a/tests/projects/c++/modules/phony2/src/hello.cpp b/tests/projects/c++/modules/phony2/src/hello.cpp
index 38ecf20e3..fe5943e3c 100644
--- a/tests/projects/c++/modules/phony2/src/hello.cpp
+++ b/tests/projects/c++/modules/phony2/src/hello.cpp
@@ -7,11 +7,10 @@ module hello;
using namespace std;
namespace hello {
- say::say(int data) : data_(data) {
-
- }
+say::say(int data) : data_(data) {
+}
- void say::hello() {
- cout << "hello, say class: " << data_ << endl;
- }
+void say::hello() {
+ cout << "hello, say class: " << data_ << endl;
+}
} // namespace hello