diff options
| author | ruki <[email protected]> | 2025-11-10 06:35:04 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-10 06:35:04 +0800 |
| commit | 2b01e46fcf619aaecb8435b0fac975e3aff0587f (patch) | |
| tree | 8f005a8dfc3272e9f027560e5e1b5881a7a8bc70 /tests/projects/c++/unity_build/src/bar | |
| parent | a1b0ec856e2c22aac84022feb05b6687912e3d6e (diff) | |
| parent | 2c387895657ae13cd717d7f42f5baed5eb028a8e (diff) | |
Merge pull request #7008 from xmake-io/format
format code
Diffstat (limited to 'tests/projects/c++/unity_build/src/bar')
| -rw-r--r-- | tests/projects/c++/unity_build/src/bar/test4.cpp | 5 | ||||
| -rw-r--r-- | tests/projects/c++/unity_build/src/bar/test5.cpp | 6 | ||||
| -rw-r--r-- | tests/projects/c++/unity_build/src/bar/test6.cpp | 3 |
3 files changed, 5 insertions, 9 deletions
diff --git a/tests/projects/c++/unity_build/src/bar/test4.cpp b/tests/projects/c++/unity_build/src/bar/test4.cpp index 8fe732964..5012c2235 100644 --- a/tests/projects/c++/unity_build/src/bar/test4.cpp +++ b/tests/projects/c++/unity_build/src/bar/test4.cpp @@ -3,10 +3,9 @@ #include "header.h" namespace MY_UNITY_ID { - int i = 42; +int i = 42; } -int test4() -{ +int test4() { return MY_UNITY_ID::i; } diff --git a/tests/projects/c++/unity_build/src/bar/test5.cpp b/tests/projects/c++/unity_build/src/bar/test5.cpp index afff0b46c..80beed9a4 100644 --- a/tests/projects/c++/unity_build/src/bar/test5.cpp +++ b/tests/projects/c++/unity_build/src/bar/test5.cpp @@ -3,11 +3,9 @@ #include "header.h" namespace MY_UNITY_ID { - int i = 42; +int i = 42; } -int test5() -{ +int test5() { return MY_UNITY_ID::i; } - diff --git a/tests/projects/c++/unity_build/src/bar/test6.cpp b/tests/projects/c++/unity_build/src/bar/test6.cpp index efbd7c6c1..03dd19a28 100644 --- a/tests/projects/c++/unity_build/src/bar/test6.cpp +++ b/tests/projects/c++/unity_build/src/bar/test6.cpp @@ -2,7 +2,6 @@ // main.cpp #include "header.h" -int test6() -{ +int test6() { return 0; } |
