From f029d068cd8d7f508cafd7fc050c1738350b114c Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 24 Aug 2022 22:45:42 +0800 Subject: format code --- tests/projects/c++/modules/headerunits_person/src/Person.mpp | 2 +- tests/projects/c++/modules/headerunits_person/src/test.cpp | 4 ++-- tests/projects/c++/modules/partitions2/src/math.cpp | 8 ++++---- tests/projects/c++/modules/partitions2/src/math.mpp | 4 ++-- tests/projects/c++/modules/partitions2/src/math_helpers.cpp | 4 ++-- tests/projects/c++/modules/partitions2/src/test.cpp | 4 ++-- 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 // +#include 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) }; } -- cgit v1.3.1