From 990406c193e009125ed5f5154db68e6032a60190 Mon Sep 17 00:00:00 2001 From: Tomoya Fujita Date: Thu, 12 Dec 2024 23:04:26 -0800 Subject: [PATCH] Address several typo fixes (#483) Signed-off-by: Tomoya Fujita --- ddsrouter_core/CMakeLists.txt | 2 +- ddsrouter_test/CMakeLists.txt | 4 ++-- ddsrouter_yaml/CMakeLists.txt | 2 +- .../src/cpp/YamlReader_configuration.cpp | 2 +- docs/CMakeLists.txt | 2 +- thirdparty/filewatch/FileWatch.hpp | 2 +- thirdparty/optionparser/optionparser.h | 16 ++++++++-------- tools/ddsrouter_tool/CMakeLists.txt | 2 +- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/ddsrouter_core/CMakeLists.txt b/ddsrouter_core/CMakeLists.txt index 0965da882..e3e2414a1 100644 --- a/ddsrouter_core/CMakeLists.txt +++ b/ddsrouter_core/CMakeLists.txt @@ -35,7 +35,7 @@ find_package(cmake_utils REQUIRED) # - Set installation paths configure_project() -# Call explictly project +# Call explicitly project project( ${MODULE_NAME} VERSION diff --git a/ddsrouter_test/CMakeLists.txt b/ddsrouter_test/CMakeLists.txt index 17441eff2..ade14c936 100644 --- a/ddsrouter_test/CMakeLists.txt +++ b/ddsrouter_test/CMakeLists.txt @@ -35,7 +35,7 @@ find_package(cmake_utils REQUIRED) # - Set installation paths configure_project() -# Call explictly project +# Call explicitly project project( ${MODULE_NAME} VERSION @@ -57,7 +57,7 @@ if(BUILD_COMPOSE_TESTS) add_subdirectory(compose) endif() # NOTE: this is done explicitly and not by a CMake macro (compile_test) as other packages -# because it does not feel like reusable, so adding it to cmake_utils does not seems appropiate. +# because it does not feel like reusable, so adding it to cmake_utils does not seems appropriate. ############################################################################### # Packaging diff --git a/ddsrouter_yaml/CMakeLists.txt b/ddsrouter_yaml/CMakeLists.txt index 0965da882..e3e2414a1 100644 --- a/ddsrouter_yaml/CMakeLists.txt +++ b/ddsrouter_yaml/CMakeLists.txt @@ -35,7 +35,7 @@ find_package(cmake_utils REQUIRED) # - Set installation paths configure_project() -# Call explictly project +# Call explicitly project project( ${MODULE_NAME} VERSION diff --git a/ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp b/ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp index 1479b4676..87dbe354c 100644 --- a/ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp +++ b/ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp @@ -143,7 +143,7 @@ YamlReader::get>( default: // Non recheable code throw eprosima::utils::ConfigurationException( - utils::Formatter() << "Unkown or non valid Participant kind: " << kind << "."); + utils::Formatter() << "Unknown or non valid Participant kind: " << kind << "."); } } diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 7299d12da..36ed21458 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -35,7 +35,7 @@ find_package(cmake_utils REQUIRED) # - Set installation paths configure_project() -# Call explictly project +# Call explicitly project project( ${MODULE_NAME} VERSION diff --git a/thirdparty/filewatch/FileWatch.hpp b/thirdparty/filewatch/FileWatch.hpp index f8b62d517..eede3a90b 100644 --- a/thirdparty/filewatch/FileWatch.hpp +++ b/thirdparty/filewatch/FileWatch.hpp @@ -134,7 +134,7 @@ class FileWatch return *this; } - // Const memeber varibles don't let me implent moves nicely, if moves are really wanted std::unique_ptr should be used and move that. + // Const member variables don't let me implement moves nicely, if moves are really wanted std::unique_ptr should be used and move that. FileWatch( FileWatch&&) = delete; FileWatch& operator =( diff --git a/thirdparty/optionparser/optionparser.h b/thirdparty/optionparser/optionparser.h index e695e1b93..c77216c0f 100644 --- a/thirdparty/optionparser/optionparser.h +++ b/thirdparty/optionparser/optionparser.h @@ -574,7 +574,7 @@ class Option } /** - * @brief Returns true iff this is the first element of the linked list. + * @brief Returns true if this is the first element of the linked list. * * The first element in the linked list is the first option on the command line * that has the respective Descriptor::index value. @@ -587,7 +587,7 @@ class Option } /** - * @brief Returns true iff this is the last element of the linked list. + * @brief Returns true if this is the last element of the linked list. * * The last element in the linked list is the last option on the command line * that has the respective Descriptor::index value. @@ -1453,7 +1453,7 @@ class Parser /** * @internal * @brief This is the core function that does all the parsing. - * @retval false iff an unrecoverable error occurred. + * @retval false if an unrecoverable error occurred. */ static bool workhorse( bool gnu, @@ -1467,7 +1467,7 @@ class Parser /** * @internal - * @brief Returns true iff @c st1 is a prefix of @c st2 and + * @brief Returns true if @c st1 is a prefix of @c st2 and * in case @c st2 is longer than @c st1, then * the first additional character is '='. * @@ -1497,7 +1497,7 @@ class Parser * @internal * @brief Like streq() but handles abbreviations. * - * Returns true iff @c st1 and @c st2 have a common + * Returns true if @c st1 and @c st2 have a common * prefix with the following properties: * @li (if min > 0) its length is at least @c min characters or the same length as @c st1 (whichever is smaller). * @li (if min <= 0) its length is the same as that of @c st1 @@ -1534,7 +1534,7 @@ class Parser /** * @internal - * @brief Returns true iff character @c ch is contained in the string @c st. + * @brief Returns true if character @c ch is contained in the string @c st. * * Returns @c true for @c ch==0 . */ @@ -1581,7 +1581,7 @@ struct Parser::Action * options if they have a Descriptor whose Descriptor::check_arg does not return * @ref ARG_ILLEGAL. * - * Returns @c false iff a fatal error has occured and the parse should be aborted. + * Returns @c false if a fatal error has occured and the parse should be aborted. */ virtual bool perform( Option&) @@ -1595,7 +1595,7 @@ struct Parser::Action * @param args pointer to the first remaining non-option argument (if numargs > 0). * * @return - * @c false iff a fatal error has occurred. + * @c false if a fatal error has occurred. */ virtual bool finished( int numargs, diff --git a/tools/ddsrouter_tool/CMakeLists.txt b/tools/ddsrouter_tool/CMakeLists.txt index f09b12621..ff55773fb 100644 --- a/tools/ddsrouter_tool/CMakeLists.txt +++ b/tools/ddsrouter_tool/CMakeLists.txt @@ -35,7 +35,7 @@ find_package(cmake_utils REQUIRED) # - Set installation paths configure_project() -# Call explictly project +# Call explicitly project project( ${MODULE_NAME} VERSION