Merge branch 'hotfix/#818-etl-apply-code-spell-check-across-entire-code-base' into development

This commit is contained in:
John Wellbelove 2024-02-22 19:07:12 +00:00
commit f04fe0f383
17 changed files with 37 additions and 37 deletions

View File

@ -59,7 +59,7 @@ get_filename_component(_gitdescmoddir ${CMAKE_CURRENT_LIST_FILE} PATH)
# function returns an empty string via _git_dir_var.
#
# Example: Given a path C:/bla/foo/bar and assuming C:/bla/.git exists and
# neither foo nor bar contain a file/directory .git. This wil return
# neither foo nor bar contain a file/directory .git. This will return
# C:/bla/.git
#
function(_git_find_closest_git_dir _start_dir _git_dir_var)

View File

@ -119,7 +119,7 @@ Uart uart1(0, USART1_IRQ_HANDLER);
Uart uart2(1, USART2_IRQ_HANDLER);
// Declare a global callback for the timer.
// Uses the most efficient callback type for a class, as everthing is known at compile time.
// Uses the most efficient callback type for a class, as everything is known at compile time.
etl::delegate<void(size_t)> timer_member_callback = etl::delegate<void(size_t)>::create<Timer, timer, &Timer::InterruptHandler>();
// Declare the callbacks for the free functions.

View File

@ -119,7 +119,7 @@ Uart uart1(0, USART1_IRQ_HANDLER);
Uart uart2(1, USART2_IRQ_HANDLER);
// Declare a global callback for the timer.
// Uses the most efficient callback type for a class, as everthing is known at compile time.
// Uses the most efficient callback type for a class, as everything is known at compile time.
etl::function_imp<Timer, size_t, timer, &Timer::InterruptHandler> timer_member_callback;
// Declare the callbacks for the free functions.

View File

@ -2185,7 +2185,7 @@ namespace etl
//***************************************************************************
/// copy_if
/// A safer form of copy_if where it terminates when the first end iterator is reached.
/// There is currently no STL equivelent.
/// There is currently no STL equivalent.
///\ingroup algorithm
//***************************************************************************
template <typename TInputIterator,

View File

@ -1262,7 +1262,7 @@ namespace etl
/// Erases a sequence.
///\param position Position to start from.
///\param length Number of characters.
///\return A refernce to this string.
///\return A reference to this string.
//*********************************************************************
etl::ibasic_string<T>& erase(size_type position, size_type length_ = npos)
{

View File

@ -861,7 +861,7 @@ namespace etl
}
//***************************************************************************
/// Sets the function to call afer every write.
/// Sets the function to call after every write.
//***************************************************************************
void set_callback(callback_type callback_)
{
@ -869,7 +869,7 @@ namespace etl
}
//***************************************************************************
/// Gets the function to call afer every write.
/// Gets the function to call after every write.
//***************************************************************************
callback_type get_callback() const
{

View File

@ -158,7 +158,7 @@ namespace etl
};
//***************************************************************************
/// Exception for forbidden state chages.
/// Exception for forbidden state changes.
//***************************************************************************
class fsm_state_composite_state_change_forbidden : public etl::fsm_exception
{

View File

@ -177,7 +177,7 @@ namespace etl
};
//***************************************************************************
/// Exception for forbidden state chages.
/// Exception for forbidden state changes.
//***************************************************************************
class fsm_state_composite_state_change_forbidden : public etl::fsm_exception
{

View File

@ -74,7 +74,7 @@ cog.outl("//********************************************************************
///\defgroup type_traits type_traits
/// A set of type traits definitions.
/// Derived from either the standard or alternate definitions, dependant on whether or not ETL_NO_STL is defined.
/// Derived from either the standard or alternate definitions, dependent on whether or not ETL_NO_STL is defined.
/// \ingroup utilities
#if ETL_USING_STL && ETL_USING_CPP11

View File

@ -986,7 +986,7 @@ namespace etl
/// Less than or equal operator.
///\param lhs Reference to the first vector.
///\param rhs Reference to the second vector.
///\return <b>true</b> if the first vector is lexigraphically less than or equal to the second, otherwise <b>false</b>
///\return <b>true</b> if the first vector is lexicographically less than or equal to the second, otherwise <b>false</b>
///\ingroup vector
//***************************************************************************
template <typename T>
@ -999,7 +999,7 @@ namespace etl
/// Greater than or equal operator.
///\param lhs Reference to the first vector.
///\param rhs Reference to the second vector.
///\return <b>true</b> if the first vector is lexigraphically greater than or equal to the second, otherwise <b>false</b>
///\return <b>true</b> if the first vector is lexicographically greater than or equal to the second, otherwise <b>false</b>
///\ingroup vector
//***************************************************************************
template <typename T>

View File

@ -997,7 +997,7 @@ namespace etl
#if ETL_USING_CPP17 && !defined(ETL_VARIANT_FORCE_CPP11)
//***************************************************************************
/// Call the relevent visitor by attempting each one.
/// Call the relevant visitor by attempting each one.
//***************************************************************************
template <typename TVisitor, size_t... I>
void do_visitor(TVisitor& visitor, etl::index_sequence<I...>)
@ -1006,7 +1006,7 @@ namespace etl
}
//***************************************************************************
/// Call the relevent visitor by attempting each one.
/// Call the relevant visitor by attempting each one.
//***************************************************************************
template <typename TVisitor, size_t... I>
void do_visitor(TVisitor& visitor, etl::index_sequence<I...>) const
@ -1015,7 +1015,7 @@ namespace etl
}
#else
//***************************************************************************
/// /// Call the relevent visitor.
/// /// Call the relevant visitor.
//***************************************************************************
template <typename TVisitor>
void do_visitor(TVisitor& visitor)
@ -1065,7 +1065,7 @@ namespace etl
}
//***************************************************************************
/// /// Call the relevent visitor.
/// /// Call the relevant visitor.
//***************************************************************************
template <typename TVisitor>
void do_visitor(TVisitor& visitor) const
@ -1125,7 +1125,7 @@ namespace etl
{
// Workaround for MSVC (2023/05/13)
// It doesn't compile 'visitor.visit(etl::get<Index>(*this))' correctly for C++17 & C++20.
// Changed all of the instances for consistancy.
// Changed all of the instances for consistency.
auto& v = etl::get<Index>(*this);
visitor.visit(v);
return true;
@ -1146,7 +1146,7 @@ namespace etl
{
// Workaround for MSVC (2023/05/13)
// It doesn't compile 'visitor.visit(etl::get<Index>(*this))' correctly for C++17 & C++20.
// Changed all of the instances for consistancy.
// Changed all of the instances for consistency.
auto& v = etl::get<Index>(*this);
visitor.visit(v);
return true;
@ -1159,7 +1159,7 @@ namespace etl
#if ETL_USING_CPP17 && !defined(ETL_VARIANT_FORCE_CPP11)
//***************************************************************************
/// Call the relevent visitor by attempting each one.
/// Call the relevant visitor by attempting each one.
//***************************************************************************
template <typename TVisitor, size_t... I>
void do_operator(TVisitor& visitor, etl::index_sequence<I...>)
@ -1168,7 +1168,7 @@ namespace etl
}
//***************************************************************************
/// Call the relevent visitor by attempting each one.
/// Call the relevant visitor by attempting each one.
//***************************************************************************
template <typename TVisitor, size_t... I>
void do_operator(TVisitor& visitor, etl::index_sequence<I...>) const
@ -1177,7 +1177,7 @@ namespace etl
}
#else
//***************************************************************************
/// Call the relevent visitor.
/// Call the relevant visitor.
//***************************************************************************
template <typename TVisitor>
void do_operator(TVisitor& visitor)
@ -1241,7 +1241,7 @@ namespace etl
}
//***************************************************************************
/// Call the relevent visitor.
/// Call the relevant visitor.
//***************************************************************************
template <typename TVisitor>
void do_operator(TVisitor& visitor) const
@ -1693,7 +1693,7 @@ namespace etl
//***************************************************************************
/// Helper to instantiate the function pointers needed for the "jump table".
/// Embedds the 'TVarRest' (remaining variants) into its type to come around
/// Embeds the 'TVarRest' (remaining variants) into its type to come around
/// the "double expansion" otherwise needed in "do_visit".
//***************************************************************************
template <typename TRet, typename TCallable, typename TCurVariant, typename... TVarRest>

View File

@ -739,7 +739,7 @@ namespace etl
//*************************************************************************
/// Equality function.
/// Performs a comparision of the range values.
/// Performs a comparison of the range values.
/// Returns <b>true</b> if one of the following are <b>true</b>
/// 1. Both spans are empty.
/// 2. They both point to the same range of data.

View File

@ -397,7 +397,7 @@ namespace etl
TValue old_value = integral_value;
integral_value *= radix;
// No multipication overflow?
// No multiplication overflow?
is_not_overflow = ((integral_value / radix) == old_value);
if (is_not_overflow)

View File

@ -62,7 +62,7 @@ SOFTWARE.
///\defgroup type_traits type_traits
/// A set of type traits definitions.
/// Derived from either the standard or alternate definitions, dependant on whether or not ETL_NO_STL is defined.
/// Derived from either the standard or alternate definitions, dependent on whether or not ETL_NO_STL is defined.
/// \ingroup utilities
#if ETL_USING_STL && ETL_USING_CPP11

View File

@ -160,7 +160,7 @@ Comments and noexcept updates to placement new
etl::variant (variadic) refactor and updates for C++ standards compatibility
etl::overload available in C++17 only
map/flat_map speed optimisations
Various C++03 compatibilty updates for maps
Various C++03 compatibility updates for maps
Refactored Bash compilation scripts to allow selection of C++ standard and optimisation level
Renamed Bash compilation scripts. Changed 'sanity checks' to 'syntax checks
Some internal constant case changes from all upper to capital case
@ -226,7 +226,7 @@ Removed unused ETL_USE_MEM_BUILTINS option
===============================================================================
20.35.7
Updated etl::delgate to handle const functors correctly
Updated etl::delegate to handle const functors correctly
===============================================================================
20.35.6
@ -274,7 +274,7 @@ Removed duplicate include in etl::array_view
#621 No need to initialize the C-compiler, small speed improvement
#626 Empty etl::optional ctor storage initialization performance
Removed constexpr for etl::bit_cast due to unreliability of compiler support
Added has_value() as an alias for is_value() for etl::result (consistancy with STL conventions)
Added has_value() as an alias for is_value() for etl::result (consistency with STL conventions)
Added ETL_ERROR_WITH_VALUE macro for exceptions that require a value
Changed scaling template parameter for etl::scaled_rounding to uint32_t
Remove redundant etl::pair functions
@ -471,7 +471,7 @@ Fixed send_message function signatures.
20.24.0
#503 Algorithm transform uses expensive post increment operator - Fixed for all occurrences of iterator increment.
#504 ETL_CONSTANT vs const in binary.h - Fixed.
Many algorithms will leverage built-ins, if available. Dependant on compiler version.
Many algorithms will leverage built-ins, if available. Dependent on compiler version.
Added detection or selection of built-ins.
Much of etl::string and etl::string_view can be constexpr.
Added ETL initializer_list implementations that are compatible with major compilers.
@ -839,7 +839,7 @@ Added example application for shared messages.
Added a lockable queue with locks implemented as pure virtuals.
Refactored the other queues.
Fixed missing virtual destructor for C++11 observer.
Added etl::successor class for consistant 'chain of responsibilty' pattern generation.
Added etl::successor class for consistent 'chain of responsibilty' pattern generation.
Added missing constructors to unique_ptr.
Added nullptr check to unique_ptr destructor.
Fixed VS2019 warning for etl::deque iterators.
@ -1807,7 +1807,7 @@ Added constexpr constructors to string_view and array_view.
===============================================================================
14.8.2
Added missing #include "stl/interator.h" in frame_check_sequence.h
Added missing #include "stl/iterator.h" in frame_check_sequence.h
===============================================================================
14.8.1
@ -2040,7 +2040,7 @@ Added SPSC & MPPC queues
===============================================================================
11.3.0
Improved compatibility with 64 bit pltforms.
Improved compatibility with 64 bit platforms.
===============================================================================
11.2.0
@ -2077,7 +2077,7 @@ Improved etl::endianness. Added static functions.
===============================================================================
10.19.2
Fixed strict aliasing warnings for endianess.
Fixed strict aliasing warnings for endianness.
===============================================================================
10.19.1
@ -2086,7 +2086,7 @@ Fixed strict aliasing warnings for aligned storage.
===============================================================================
10.19.0
Added 'create' and 'destroy' functions to pools.
Modified class heirarchy.
Modified class hierarchy.
etl::generic_pool is derived from on etl::ipool.
etl::pool is derived from etl::generic_pool.

View File

@ -106,7 +106,7 @@ namespace
//*************************************************************************
struct SetupFixture
{
// Multimaps of predefined data from which to constuct multimaps used in
// Multimaps of predefined data from which to construct multimaps used in
// each test
std::multimap<std::string, int> initial_data;
std::multimap<std::string, int> excess_data;

View File

@ -121,7 +121,7 @@ namespace
//*************************************************************************
struct SetupFixture
{
// Multisets of predefined data from which to constuct multisets used in
// Multisets of predefined data from which to construct multisets used in
// each test
std::multiset<int> initial_data;
std::multiset<int> excess_data;