diff options
| author | ruki <[email protected]> | 2022-08-24 22:45:42 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-24 22:45:42 +0800 |
| commit | f029d068cd8d7f508cafd7fc050c1738350b114c (patch) | |
| tree | 3ad56b65b7fe86c6903b331fcb06f2f1577d6ff5 /tests/projects | |
| parent | ee55b56ef385023a290e495f6626ab7aeea2c5b8 (diff) | |
format code
Diffstat (limited to 'tests/projects')
6 files changed, 13 insertions, 13 deletions
diff --git a/tests/projects/c++/modules/headerunits_person/src/Person.mpp b/tests/projects/c++/modules/headerunits_person/src/Person.mpp index e2dbf4044..e5b8105e8 100644 --- a/tests/projects/c++/modules/headerunits_person/src/Person.mpp +++ b/tests/projects/c++/modules/headerunits_person/src/Person.mpp @@ -1,6 +1,6 @@ module;
-#include <cstddef> //
+#include <cstddef>
export module person;
diff --git a/tests/projects/c++/modules/headerunits_person/src/test.cpp b/tests/projects/c++/modules/headerunits_person/src/test.cpp index 7c01dc782..d12206ef7 100644 --- a/tests/projects/c++/modules/headerunits_person/src/test.cpp +++ b/tests/projects/c++/modules/headerunits_person/src/test.cpp @@ -6,6 +6,6 @@ using namespace std; int main()
{
- Person person{ "Kole", "Webb" };
- cout << person.getLastName() << ", " << person.getFirstName() << endl;
+ Person person{ "Kole", "Webb" };
+ cout << person.getLastName() << ", " << person.getFirstName() << endl;
}
diff --git a/tests/projects/c++/modules/partitions2/src/math.cpp b/tests/projects/c++/modules/partitions2/src/math.cpp index 535d693eb..3a10c8203 100644 --- a/tests/projects/c++/modules/partitions2/src/math.cpp +++ b/tests/projects/c++/modules/partitions2/src/math.cpp @@ -4,12 +4,12 @@ import :details; double Math::superLog(double z, double b)
{
- // Implementation omitted...
- return someHelperFunction(z);
+ // Implementation omitted...
+ return someHelperFunction(z);
}
double Math::lerchZeta(double lambda, double alpha, double s)
{
- // Implementation omitted...
- return someHelperFunction(s);
+ // Implementation omitted...
+ return someHelperFunction(s);
}
diff --git a/tests/projects/c++/modules/partitions2/src/math.mpp b/tests/projects/c++/modules/partitions2/src/math.mpp index e9308b2af..9e2552513 100644 --- a/tests/projects/c++/modules/partitions2/src/math.mpp +++ b/tests/projects/c++/modules/partitions2/src/math.mpp @@ -2,6 +2,6 @@ export module math; // math module declaration export namespace Math
{
- double superLog(double z, double b);
- double lerchZeta(double lambda, double alpha, double s);
+ double superLog(double z, double b);
+ double lerchZeta(double lambda, double alpha, double s);
}
diff --git a/tests/projects/c++/modules/partitions2/src/math_helpers.cpp b/tests/projects/c++/modules/partitions2/src/math_helpers.cpp index 9d2eaaa27..f7089bb20 100644 --- a/tests/projects/c++/modules/partitions2/src/math_helpers.cpp +++ b/tests/projects/c++/modules/partitions2/src/math_helpers.cpp @@ -2,6 +2,6 @@ module math:details; // math:details implementation partition double someHelperFunction(double a)
{
- // Implementation omitted...
- return 42;
+ // Implementation omitted...
+ return 42;
}
diff --git a/tests/projects/c++/modules/partitions2/src/test.cpp b/tests/projects/c++/modules/partitions2/src/test.cpp index a2ff757b1..8f7f81b2c 100644 --- a/tests/projects/c++/modules/partitions2/src/test.cpp +++ b/tests/projects/c++/modules/partitions2/src/test.cpp @@ -2,6 +2,6 @@ import math; int main()
{
- auto a{ Math::lerchZeta(1, 2, 3) };
- auto b{ Math::superLog(1, 2) };
+ auto a{ Math::lerchZeta(1, 2, 3) };
+ auto b{ Math::superLog(1, 2) };
}
|
