From b99108c9680b7970f77bf2d7a438fc70215ec150 Mon Sep 17 00:00:00 2001 From: joshhn Date: Thu, 8 Feb 2024 17:26:26 -0600 Subject: [PATCH] run format scripts --- include/faker-cxx/Book.h | 103 +++++++++++++++++------------------ include/faker-cxx/Color.h | 4 +- include/faker-cxx/Commerce.h | 7 +-- include/faker-cxx/Git.h | 3 +- src/common/FormatHelper.h | 4 +- 5 files changed, 59 insertions(+), 62 deletions(-) diff --git a/include/faker-cxx/Book.h b/include/faker-cxx/Book.h index 09cdd32fa..1360f2093 100644 --- a/include/faker-cxx/Book.h +++ b/include/faker-cxx/Book.h @@ -62,60 +62,59 @@ class Book */ static std::string isbn(); - /** - * @brief Returns a random release year - * - * @returns int year - * - * @code - * Book::releaseYear() // 2016 - * @endcode - */ - static int releaseYear(); + /** + * @brief Returns a random release year + * + * @returns int year + * + * @code + * Book::releaseYear() // 2016 + * @endcode + */ + static int releaseYear(); - /** - * @brief Returns the full name of a translator - * - * @returns std::string full name - * - * @code - * Book::translator() // "Eric Floyd" - * @endcode - */ - static std::string translator(); - - /** - * @brief Returns format of book - * - * @returns BookFormat format of book - * - * @code - * Book::format() // BookFormat::paperback - * @endcode - */ - static std::string format(); + /** + * @brief Returns the full name of a translator + * + * @returns std::string full name + * + * @code + * Book::translator() // "Eric Floyd" + * @endcode + */ + static std::string translator(); + + /** + * @brief Returns format of book + * + * @returns BookFormat format of book + * + * @code + * Book::format() // BookFormat::paperback + * @endcode + */ + static std::string format(); - /* - * @brief returns a random page number (50-999) - * - * @returns int page number - * - * @code - * Book::page() // 314 - * @endcode - */ - static int page(); + /* + * @brief returns a random page number (50-999) + * + * @returns int page number + * + * @code + * Book::page() // 314 + * @endcode + */ + static int page(); - /* - * @brief returns a random book series - * - * @returns std::string book series - * - * @code - * Book::series() // "Harry Potter" - * @endcode - */ - static std::string series(); + /* + * @brief returns a random book series + * + * @returns std::string book series + * + * @code + * Book::series() // "Harry Potter" + * @endcode + */ + static std::string series(); }; } - diff --git a/include/faker-cxx/Color.h b/include/faker-cxx/Color.h index f72b5f03a..7ce62dd55 100644 --- a/include/faker-cxx/Color.h +++ b/include/faker-cxx/Color.h @@ -114,8 +114,8 @@ class Color * @endcode */ static std::string hsv(); - - /** + + /** * @brief Return a YUV color * * @returns YUV color formatted with yuv(X,X,X) diff --git a/include/faker-cxx/Commerce.h b/include/faker-cxx/Commerce.h index d226efbe8..4f655ea1d 100644 --- a/include/faker-cxx/Commerce.h +++ b/include/faker-cxx/Commerce.h @@ -195,7 +195,7 @@ class Commerce * @endcode */ static std::string productReview(); - + /** * @brief Returns a random product rating (0-5). * @@ -217,7 +217,7 @@ class Commerce * @endcode */ static std::string discountType(); - + /** * @brief Returns random discount code within the specified range of 6 to 12 characters. * @@ -241,7 +241,7 @@ class Commerce static double discountAmount(); /** - * @brief Returns a random discount percentage within the specified range of 1. to 90. + * @brief Returns a random discount percentage within the specified range of 1. to 90. * * @returns discountPercentage. * @@ -250,6 +250,5 @@ class Commerce * @endcode */ static double discountPercentage(); - }; } diff --git a/include/faker-cxx/Git.h b/include/faker-cxx/Git.h index fe00868ae..9a4f152a3 100644 --- a/include/faker-cxx/Git.h +++ b/include/faker-cxx/Git.h @@ -84,7 +84,6 @@ class Git */ static std::string commitSha(unsigned length = 40); - /** * @brief Returns a random author name and email. * @@ -96,6 +95,6 @@ class Git * Git::author // {Author.name = "Rachel McLaughlin", Author.email = "Rachel_McLaughlin@gmail.com"} * @endcode */ - static Author author(); + static Author author(); }; } diff --git a/src/common/FormatHelper.h b/src/common/FormatHelper.h index 52fd9eaf9..916cb58f9 100644 --- a/src/common/FormatHelper.h +++ b/src/common/FormatHelper.h @@ -5,7 +5,7 @@ #include #include -#if defined(__APPLE__) || defined(__MINGW32__) || (defined(__GNUC__) && (__GNUC__ < 12) && !defined(__clang__)) +#if defined(__APPLE__) || defined(__MINGW32__) || (defined(__GNUC__) && (__GNUC__ < 12) && !defined(__clang__)) #include #else #include @@ -16,7 +16,7 @@ namespace faker class FormatHelper { public: -#if defined(__APPLE__) || defined(__MINGW32__) || (defined(__GNUC__) && (__GNUC__ < 12) && !defined(__clang__)) +#if defined(__APPLE__) || defined(__MINGW32__) || (defined(__GNUC__) && (__GNUC__ < 12) && !defined(__clang__)) template static std::string format(fmt::format_string fmt, Args&&... args) {