mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Add missing syntax checks (#1381)
* Fix run-syntax-checks.sh to run with bash Contains bash specific syntax, and sync with the other *.sh files in this directory. * Add missing header file adaptors to the directory and CMakeLists.txt * run-syntax-checks.sh without ETL_IN_UNIT_TEST * Fix usage of make_unsigned * Removing crc.h from syntax checks because of redundancy * Remove ETL_USING_CPP11 from unit tests Unit tests are always run with at least C++11. * Add missing copyright header in test_manchester.cpp * Fixed usage of ETL_DEPRECATED_REASON(), wrong syntax by order --------- Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com> Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
This commit is contained in:
parent
29d0cfec7c
commit
17799452d2
@ -35,10 +35,6 @@ SOFTWARE.
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#if ETL_NOT_USING_CPP11 && !defined(ETL_IN_UNIT_TEST)
|
||||
#error NOT SUPPORTED FOR C++03 OR BELOW
|
||||
#endif
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
|
||||
#include "hash.h"
|
||||
|
||||
@ -67,7 +67,7 @@ namespace etl
|
||||
{
|
||||
public:
|
||||
|
||||
ETL_DEPRECATED_REASON("Use callback_type") using delegate_type =
|
||||
using delegate_type ETL_DEPRECATED_REASON("Use callback_type") =
|
||||
TCallback; ///< The callback type to be invoked. Deprecated, use callback_type instead.
|
||||
using callback_type = TCallback; ///< The callback type to be invoked.
|
||||
using argument_types = etl::type_list<TArgs...>; ///< The type list of arguments.
|
||||
|
||||
@ -36,10 +36,6 @@ SOFTWARE.
|
||||
#include "type_traits.h"
|
||||
#include "utility.h"
|
||||
|
||||
#if ETL_NOT_USING_CPP20 && !defined(ETL_IN_UNIT_TEST)
|
||||
#error NOT SUPPORTED FOR BELOW C++20
|
||||
#endif
|
||||
|
||||
#if ETL_USING_CPP20
|
||||
|
||||
#if ETL_USING_STL
|
||||
|
||||
@ -33,10 +33,6 @@ SOFTWARE.
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#if ETL_NOT_USING_CPP11
|
||||
#error NOT SUPPORTED FOR C++03 OR BELOW
|
||||
#endif
|
||||
|
||||
#include "algorithm.h"
|
||||
#include "functional.h"
|
||||
#include "nth_type.h"
|
||||
@ -45,6 +41,8 @@ SOFTWARE.
|
||||
|
||||
#include "private/comparator_is_transparent.h"
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
|
||||
///\defgroup const_map const_map
|
||||
///\ingroup containers
|
||||
|
||||
@ -528,14 +526,14 @@ namespace etl
|
||||
value_type element_list[Size];
|
||||
};
|
||||
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
template <typename... TElements>
|
||||
const_map(TElements...)
|
||||
-> const_map<typename etl::nth_type_t<0, TElements...>::first_type, typename etl::nth_type_t<0, TElements...>::second_type, sizeof...(TElements)>;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*********************************************************************
|
||||
/// Map type designed for constexpr.
|
||||
@ -586,16 +584,16 @@ namespace etl
|
||||
}
|
||||
};
|
||||
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
template <typename TElements, size_t Size>
|
||||
const_map_ext(const etl::span<TElements, Size>&) -> const_map_ext<typename TElements::first_type, typename TElements::second_type>;
|
||||
|
||||
template <typename TElements, size_t Size>
|
||||
const_map_ext(const TElements (&)[Size]) -> const_map_ext<typename TElements::first_type, typename TElements::second_type>;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
/// Equality test.
|
||||
@ -659,3 +657,4 @@ namespace etl
|
||||
} // namespace etl
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -33,10 +33,6 @@ SOFTWARE.
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#if ETL_NOT_USING_CPP11
|
||||
#error NOT SUPPORTED FOR C++03 OR BELOW
|
||||
#endif
|
||||
|
||||
#include "algorithm.h"
|
||||
#include "functional.h"
|
||||
#include "nth_type.h"
|
||||
@ -45,6 +41,8 @@ SOFTWARE.
|
||||
|
||||
#include "private/comparator_is_transparent.h"
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
|
||||
///\defgroup const_multimap const_multimap
|
||||
///\ingroup containers
|
||||
|
||||
@ -478,14 +476,14 @@ namespace etl
|
||||
value_type element_list[Size];
|
||||
};
|
||||
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
template <typename... TPairs>
|
||||
const_multimap(TPairs...)
|
||||
-> const_multimap<typename etl::nth_type_t<0, TPairs...>::first_type, typename etl::nth_type_t<0, TPairs...>::second_type, sizeof...(TPairs)>;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*********************************************************************
|
||||
/// Map type designed for constexpr.
|
||||
@ -536,16 +534,16 @@ namespace etl
|
||||
}
|
||||
};
|
||||
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
template <typename TElements, size_t Size>
|
||||
const_multimap_ext(const etl::span<TElements, Size>&) -> const_multimap_ext<typename TElements::first_type, typename TElements::second_type>;
|
||||
|
||||
template <typename TElements, size_t Size>
|
||||
const_multimap_ext(const TElements (&)[Size]) -> const_multimap_ext<typename TElements::first_type, typename TElements::second_type>;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
/// Equality test.
|
||||
@ -626,3 +624,4 @@ namespace etl
|
||||
} // namespace etl
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -33,10 +33,6 @@ SOFTWARE.
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#if ETL_NOT_USING_CPP11
|
||||
#error NOT SUPPORTED FOR C++03 OR BELOW
|
||||
#endif
|
||||
|
||||
#include "algorithm.h"
|
||||
#include "functional.h"
|
||||
#include "nth_type.h"
|
||||
@ -45,6 +41,8 @@ SOFTWARE.
|
||||
|
||||
#include "private/comparator_is_transparent.h"
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
|
||||
///\defgroup const_multiset const_multiset
|
||||
///\ingroup containers
|
||||
|
||||
@ -433,13 +431,13 @@ namespace etl
|
||||
value_type element_list[Size];
|
||||
};
|
||||
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
template <typename... TElements>
|
||||
const_multiset(TElements...) -> const_multiset<etl::nth_type_t<0, TElements...>, sizeof...(TElements)>;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*********************************************************************
|
||||
/// Multiset type designed for constexpr.
|
||||
@ -488,16 +486,16 @@ namespace etl
|
||||
}
|
||||
};
|
||||
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
template <typename TElements, size_t Size>
|
||||
const_multiset_ext(const etl::span<TElements, Size>&) -> const_multiset_ext<TElements>;
|
||||
|
||||
template <typename TElements, size_t Size>
|
||||
const_multiset_ext(const TElements (&)[Size]) -> const_multiset_ext<TElements>;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
/// Equality test.
|
||||
@ -572,3 +570,4 @@ namespace etl
|
||||
} // namespace etl
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -33,10 +33,6 @@ SOFTWARE.
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#if ETL_NOT_USING_CPP11
|
||||
#error NOT SUPPORTED FOR C++03 OR BELOW
|
||||
#endif
|
||||
|
||||
#include "algorithm.h"
|
||||
#include "functional.h"
|
||||
#include "nth_type.h"
|
||||
@ -45,6 +41,8 @@ SOFTWARE.
|
||||
|
||||
#include "private/comparator_is_transparent.h"
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
|
||||
///\defgroup const_set const_set
|
||||
///\ingroup containers
|
||||
|
||||
@ -426,13 +424,13 @@ namespace etl
|
||||
value_type element_list[Size];
|
||||
};
|
||||
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
template <typename... TElements>
|
||||
const_set(TElements...) -> const_set<etl::nth_type_t<0, TElements...>, sizeof...(TElements)>;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*********************************************************************
|
||||
/// Map type designed for constexpr.
|
||||
@ -481,16 +479,16 @@ namespace etl
|
||||
}
|
||||
};
|
||||
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
//*************************************************************************
|
||||
/// Template deduction guides.
|
||||
//*************************************************************************
|
||||
#if ETL_USING_CPP17
|
||||
template <typename TElements, size_t Size>
|
||||
const_set_ext(const etl::span<TElements, Size>&) -> const_set_ext<TElements>;
|
||||
|
||||
template <typename TElements, size_t Size>
|
||||
const_set_ext(const TElements (&)[Size]) -> const_set_ext<TElements>;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
/// Equality test.
|
||||
@ -548,3 +546,4 @@ namespace etl
|
||||
} // namespace etl
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -35,6 +35,8 @@ SOFTWARE.
|
||||
#include "span.h"
|
||||
#include "static_assert.h"
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
|
||||
///\defgroup manchester manchester
|
||||
/// Manchester encoding and decoding
|
||||
///\ingroup utilities
|
||||
@ -51,13 +53,13 @@ namespace etl
|
||||
struct is_encodable
|
||||
{
|
||||
static const bool value =
|
||||
#if ETL_USING_8BIT_TYPES
|
||||
#if ETL_USING_8BIT_TYPES
|
||||
etl::is_same<TChunk, uint8_t>::value ||
|
||||
#endif
|
||||
#endif
|
||||
etl::is_same<TChunk, uint16_t>::value
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
|| etl::is_same<TChunk, uint32_t>::value
|
||||
#endif
|
||||
#endif
|
||||
;
|
||||
};
|
||||
|
||||
@ -69,13 +71,13 @@ namespace etl
|
||||
struct is_decodable
|
||||
{
|
||||
static const bool value =
|
||||
#if ETL_USING_8BIT_TYPES
|
||||
#if ETL_USING_8BIT_TYPES
|
||||
etl::is_same<TChunk, uint16_t>::value ||
|
||||
#endif
|
||||
#endif
|
||||
etl::is_same<TChunk, uint32_t>::value
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
|| etl::is_same<TChunk, uint64_t>::value
|
||||
#endif
|
||||
#endif
|
||||
;
|
||||
};
|
||||
|
||||
@ -91,13 +93,13 @@ namespace etl
|
||||
ETL_STATIC_ASSERT(sizeof(T) == 0, "Manchester encoding type should be one of [uint8_t, uint16_t, uint32_t]");
|
||||
};
|
||||
|
||||
#if ETL_USING_8BIT_TYPES
|
||||
#if ETL_USING_8BIT_TYPES
|
||||
template <>
|
||||
struct encoded<uint8_t>
|
||||
{
|
||||
typedef uint16_t type;
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
template <>
|
||||
struct encoded<uint16_t>
|
||||
@ -105,13 +107,13 @@ namespace etl
|
||||
typedef uint32_t type;
|
||||
};
|
||||
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
template <>
|
||||
struct encoded<uint32_t>
|
||||
{
|
||||
typedef uint64_t type;
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
/// Type trait to determine the decoded type for a given encoded type.
|
||||
@ -125,13 +127,13 @@ namespace etl
|
||||
ETL_STATIC_ASSERT(sizeof(T) == 0, "Manchester decoding type should be one of [uint16_t, uint32_t, uint64_t]");
|
||||
};
|
||||
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
template <>
|
||||
struct decoded<uint16_t>
|
||||
{
|
||||
typedef uint8_t type;
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
template <>
|
||||
struct decoded<uint32_t>
|
||||
@ -139,24 +141,24 @@ namespace etl
|
||||
typedef uint16_t type;
|
||||
};
|
||||
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
template <>
|
||||
struct decoded<uint64_t>
|
||||
{
|
||||
typedef uint32_t type;
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
/// Normal Manchester encoding type (no inversion).
|
||||
//*************************************************************************
|
||||
struct manchester_type_normal
|
||||
{
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
static const uint64_t inversion_mask = 0x0000000000000000ULL;
|
||||
#else
|
||||
#else
|
||||
static const uint32_t inversion_mask = 0x00000000UL;
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
//*************************************************************************
|
||||
@ -164,11 +166,11 @@ namespace etl
|
||||
//*************************************************************************
|
||||
struct manchester_type_inverted
|
||||
{
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
static const uint64_t inversion_mask = 0xFFFFFFFFFFFFFFFFULL;
|
||||
#else
|
||||
#else
|
||||
static const uint32_t inversion_mask = 0xFFFFFFFFUL;
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
//*************************************************************************
|
||||
@ -247,11 +249,11 @@ namespace etl
|
||||
ETL_STATIC_ASSERT(CHAR_BIT == etl::numeric_limits<uint_least8_t>::digits,
|
||||
"Manchester requires uint_least8_t to have the same number of bits as CHAR (CHAR_BITS)");
|
||||
|
||||
//*************************************************************************
|
||||
// Encoding functions
|
||||
//*************************************************************************
|
||||
//*************************************************************************
|
||||
// Encoding functions
|
||||
//*************************************************************************
|
||||
|
||||
#if ETL_USING_8BIT_TYPES
|
||||
#if ETL_USING_8BIT_TYPES
|
||||
//*************************************************************************
|
||||
/// Encode a 8-bit unsigned value and return 16-bit result.
|
||||
///\param decoded The value to encode.
|
||||
@ -273,7 +275,7 @@ namespace etl
|
||||
^ (0xAAAAU ^ static_cast<unsigned int>(TManchesterType::inversion_mask)));
|
||||
return encoded;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
/// Encode a 16-bit unsigned value and return the 32-bit result.
|
||||
@ -297,7 +299,7 @@ namespace etl
|
||||
return encoded;
|
||||
}
|
||||
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
//*************************************************************************
|
||||
/// Encode a 32-bit unsigned value and return the 64-bit result.
|
||||
///\param decoded The value to encode.
|
||||
@ -320,7 +322,7 @@ namespace etl
|
||||
encoded = (encoded | (encoded << 1U)) ^ (0xAAAAAAAAAAAAAAAAULL ^ TManchesterType::inversion_mask);
|
||||
return encoded;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
/// Encode a span of data with the specified chunk size.
|
||||
@ -350,11 +352,11 @@ namespace etl
|
||||
}
|
||||
}
|
||||
|
||||
//*************************************************************************
|
||||
// Decoding functions
|
||||
//*************************************************************************
|
||||
//*************************************************************************
|
||||
// Decoding functions
|
||||
//*************************************************************************
|
||||
|
||||
#if ETL_USING_8BIT_TYPES
|
||||
#if ETL_USING_8BIT_TYPES
|
||||
//*************************************************************************
|
||||
/// Decode a 16-bit value and return the 8-bit result.
|
||||
///\param encoded The value to decode.
|
||||
@ -373,7 +375,7 @@ namespace etl
|
||||
encoded = static_cast<TEncoded>((static_cast<unsigned int>(encoded) | (static_cast<unsigned int>(encoded) >> 2)) & 0x0F0FU);
|
||||
return static_cast<TDecoded>(static_cast<unsigned int>(encoded) | (static_cast<unsigned int>(encoded) >> 4U));
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
/// Decode a 32-bit value and return the 16-bit result.
|
||||
@ -394,7 +396,7 @@ namespace etl
|
||||
return static_cast<TDecoded>(encoded | (encoded >> 8U));
|
||||
}
|
||||
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
#if ETL_USING_64BIT_TYPES
|
||||
//*************************************************************************
|
||||
/// Decode a 64-bit value and return the 32-bit result.
|
||||
///\param encoded The value to decode.
|
||||
@ -414,7 +416,7 @@ namespace etl
|
||||
encoded = (encoded | (encoded >> 8)) & 0x0000FFFF0000FFFFULL;
|
||||
return static_cast<TDecoded>(encoded | (encoded >> 16U));
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//*************************************************************************
|
||||
/// Decode a span of data using the specified chunk type.
|
||||
@ -500,3 +502,4 @@ namespace etl
|
||||
} // namespace etl
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -34,11 +34,7 @@ SOFTWARE.
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#if ETL_CPP11_NOT_SUPPORTED
|
||||
#if !defined(ETL_IN_UNIT_TEST)
|
||||
#error NOT SUPPORTED FOR C++03 OR BELOW
|
||||
#endif
|
||||
#else
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
namespace etl
|
||||
{
|
||||
//***************************************************************************
|
||||
|
||||
@ -38,11 +38,7 @@ SOFTWARE.
|
||||
#include "optional.h"
|
||||
#include "variant.h"
|
||||
|
||||
#if ETL_CPP11_NOT_SUPPORTED
|
||||
#if !defined(ETL_IN_UNIT_TEST)
|
||||
#error NOT SUPPORTED FOR C++03 OR BELOW
|
||||
#endif
|
||||
#else
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
|
||||
namespace etl
|
||||
{
|
||||
@ -70,7 +66,6 @@ namespace etl
|
||||
{
|
||||
}
|
||||
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*******************************************
|
||||
/// Move constructor
|
||||
//*******************************************
|
||||
@ -78,7 +73,6 @@ namespace etl
|
||||
: data(etl::move(other.data))
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
//*******************************************
|
||||
// Construct from a value
|
||||
@ -104,15 +98,13 @@ namespace etl
|
||||
{
|
||||
}
|
||||
|
||||
//*******************************************
|
||||
/// Move construct from error
|
||||
//*******************************************
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*******************************************
|
||||
/// Move construct from error
|
||||
//*******************************************
|
||||
result(TError&& error)
|
||||
: data(etl::move(error))
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
//*******************************************
|
||||
/// Copy assign
|
||||
@ -141,16 +133,14 @@ namespace etl
|
||||
return *this;
|
||||
}
|
||||
|
||||
//*******************************************
|
||||
/// Move assign from value
|
||||
//*******************************************
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*******************************************
|
||||
/// Move assign from value
|
||||
//*******************************************
|
||||
result& operator=(TValue&& value)
|
||||
{
|
||||
data = etl::move(value);
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
||||
//*******************************************
|
||||
/// Copy assign from error
|
||||
@ -161,16 +151,14 @@ namespace etl
|
||||
return *this;
|
||||
}
|
||||
|
||||
//*******************************************
|
||||
/// Move assign from error
|
||||
//*******************************************
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*******************************************
|
||||
/// Move assign from error
|
||||
//*******************************************
|
||||
result& operator=(TError&& error)
|
||||
{
|
||||
data = etl::move(error);
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
||||
//*******************************************
|
||||
/// <b>true</b> if result contains a value
|
||||
@ -223,16 +211,14 @@ namespace etl
|
||||
return etl::get<TError>(data);
|
||||
}
|
||||
|
||||
//*******************************************
|
||||
/// Returns an rvalue reference to the error.
|
||||
/// Undefined if the result does not contain an error.
|
||||
//*******************************************
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*******************************************
|
||||
/// Returns an rvalue reference to the error.
|
||||
/// Undefined if the result does not contain an error.
|
||||
//*******************************************
|
||||
TError&& error()
|
||||
{
|
||||
return etl::move(etl::get<TError>(data));
|
||||
}
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
||||
@ -280,15 +266,13 @@ namespace etl
|
||||
{
|
||||
}
|
||||
|
||||
//*******************************************
|
||||
/// Move construct from error
|
||||
//*******************************************
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*******************************************
|
||||
/// Move construct from error
|
||||
//*******************************************
|
||||
result(TError&& error)
|
||||
: data(etl::move(error))
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
//*******************************************
|
||||
/// Copy assign from error
|
||||
@ -299,16 +283,14 @@ namespace etl
|
||||
return *this;
|
||||
}
|
||||
|
||||
//*******************************************
|
||||
/// Move assign from error
|
||||
//*******************************************
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*******************************************
|
||||
/// Move assign from error
|
||||
//*******************************************
|
||||
result& operator=(TError&& error)
|
||||
{
|
||||
data = etl::move(error);
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
||||
//*******************************************
|
||||
/// <b>true</b> if result contains a value
|
||||
@ -343,16 +325,14 @@ namespace etl
|
||||
return data.value();
|
||||
}
|
||||
|
||||
//*******************************************
|
||||
/// Returns an rvalue reference to the error.
|
||||
/// Undefined if the result does not contain an error.
|
||||
//*******************************************
|
||||
#if ETL_CPP11_SUPPORTED
|
||||
//*******************************************
|
||||
/// Returns an rvalue reference to the error.
|
||||
/// Undefined if the result does not contain an error.
|
||||
//*******************************************
|
||||
TError&& error()
|
||||
{
|
||||
return etl::move(data.value());
|
||||
}
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@ -36,6 +36,8 @@ SOFTWARE.
|
||||
#include "type_traits.h"
|
||||
#include "utility.h"
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
|
||||
namespace etl
|
||||
{
|
||||
namespace private_rounded_integral_division
|
||||
@ -565,7 +567,7 @@ namespace etl
|
||||
|
||||
// Work with magnitudes in unsigned form (avoids abs() overflow for
|
||||
// T::min()).
|
||||
typedef typename std::make_unsigned<T>::type utype;
|
||||
typedef typename etl::make_unsigned<T>::type utype;
|
||||
const utype abs_denominator = (denominator < 0) ? (utype(0) - utype(denominator)) : utype(denominator);
|
||||
const utype abs_remainder = (remainder < 0) ? (utype(0) - utype(remainder)) : utype(remainder);
|
||||
const utype half_denominator = abs_denominator / 2U;
|
||||
@ -784,3 +786,4 @@ namespace etl
|
||||
} // namespace etl
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -35,10 +35,6 @@ SOFTWARE.
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#if ETL_NOT_USING_CPP11 && !defined(ETL_IN_UNIT_TEST)
|
||||
#error NOT SUPPORTED FOR C++03 OR BELOW
|
||||
#endif
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
|
||||
#include "algorithm.h"
|
||||
|
||||
@ -31,10 +31,6 @@ SOFTWARE.
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#if ETL_NOT_USING_CPP11 && !defined(ETL_IN_UNIT_TEST)
|
||||
#error NOT SUPPORTED FOR C++03 OR BELOW
|
||||
#endif
|
||||
|
||||
#if ETL_USING_CPP11
|
||||
|
||||
#if ETL_USING_STL
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
clear
|
||||
|
||||
echo -e
|
||||
|
||||
@ -115,6 +115,10 @@ target_sources(tests PRIVATE
|
||||
checksum.h.t.cpp
|
||||
chrono.h.t.cpp
|
||||
concepts.h.t.cpp
|
||||
const_map.h.t.cpp
|
||||
const_multimap.h.t.cpp
|
||||
const_multiset.h.t.cpp
|
||||
const_set.h.t.cpp
|
||||
circular_buffer.h.t.cpp
|
||||
circular_iterator.h.t.cpp
|
||||
closure.h.t.cpp
|
||||
@ -163,6 +167,7 @@ target_sources(tests PRIVATE
|
||||
crc32_q.h.t.cpp
|
||||
crc32_xfer.h.t.cpp
|
||||
crc64_ecma.h.t.cpp
|
||||
crc64_iso.h.t.cpp
|
||||
crc8_ccitt.h.t.cpp
|
||||
crc8_cdma2000.h.t.cpp
|
||||
crc8_darc.h.t.cpp
|
||||
@ -174,6 +179,7 @@ target_sources(tests PRIVATE
|
||||
crc8_j1850_zero.h.t.cpp
|
||||
crc8_maxim.h.t.cpp
|
||||
crc8_opensafety.h.t.cpp
|
||||
crc8_nrsc5.h.t.cpp
|
||||
crc8_rohc.h.t.cpp
|
||||
crc8_wcdma.h.t.cpp
|
||||
cyclic_value.h.t.cpp
|
||||
@ -215,6 +221,7 @@ target_sources(tests PRIVATE
|
||||
histogram.h.t.cpp
|
||||
ihash.h.t.cpp
|
||||
imemory_block_allocator.h.t.cpp
|
||||
index_of_type.h.t.cpp
|
||||
indirect_vector.h.t.cpp
|
||||
initializer_list.h.t.cpp
|
||||
inplace_function.h.t.cpp
|
||||
@ -239,6 +246,7 @@ target_sources(tests PRIVATE
|
||||
list.h.t.cpp
|
||||
log.h.t.cpp
|
||||
macros.h.t.cpp
|
||||
manchester.h.t.cpp
|
||||
map.h.t.cpp
|
||||
math.h.t.cpp
|
||||
math_constants.h.t.cpp
|
||||
@ -284,6 +292,7 @@ target_sources(tests PRIVATE
|
||||
poly_span.h.t.cpp
|
||||
pool.h.t.cpp
|
||||
power.h.t.cpp
|
||||
print.h.t.cpp
|
||||
priority_queue.h.t.cpp
|
||||
pseudo_moving_average.h.t.cpp
|
||||
quantize.h.t.cpp
|
||||
@ -295,6 +304,7 @@ target_sources(tests PRIVATE
|
||||
queue_spsc_locked.h.t.cpp
|
||||
radix.h.t.cpp
|
||||
random.h.t.cpp
|
||||
ranges.h.t.cpp
|
||||
ratio.h.t.cpp
|
||||
reference_counted_message.h.t.cpp
|
||||
reference_counted_message_pool.h.t.cpp
|
||||
@ -306,6 +316,7 @@ target_sources(tests PRIVATE
|
||||
rescale.h.t.cpp
|
||||
result.h.t.cpp
|
||||
rms.h.t.cpp
|
||||
rounded_integral_division.h.t.cpp
|
||||
scaled_rounding.h.t.cpp
|
||||
scheduler.h.t.cpp
|
||||
set.h.t.cpp
|
||||
@ -337,6 +348,7 @@ target_sources(tests PRIVATE
|
||||
to_wstring.h.t.cpp
|
||||
tuple.h.t.cpp
|
||||
type_def.h.t.cpp
|
||||
type_list.h.t.cpp
|
||||
type_lookup.h.t.cpp
|
||||
type_select.h.t.cpp
|
||||
type_traits.h.t.cpp
|
||||
|
||||
29
test/syntax_check/const_map.h.t.cpp
Normal file
29
test/syntax_check/const_map.h.t.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 BMW AG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <etl/const_map.h>
|
||||
29
test/syntax_check/const_multimap.h.t.cpp
Normal file
29
test/syntax_check/const_multimap.h.t.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 BMW AG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <etl/const_multimap.h>
|
||||
29
test/syntax_check/const_multiset.h.t.cpp
Normal file
29
test/syntax_check/const_multiset.h.t.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 BMW AG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <etl/const_multiset.h>
|
||||
29
test/syntax_check/const_set.h.t.cpp
Normal file
29
test/syntax_check/const_set.h.t.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 BMW AG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <etl/const_set.h>
|
||||
29
test/syntax_check/crc64_iso.h.t.cpp
Normal file
29
test/syntax_check/crc64_iso.h.t.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 BMW AG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <etl/crc64_iso.h>
|
||||
29
test/syntax_check/crc8_nrsc5.h.t.cpp
Normal file
29
test/syntax_check/crc8_nrsc5.h.t.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 BMW AG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <etl/crc8_nrsc5.h>
|
||||
@ -31,7 +31,6 @@ SOFTWARE.
|
||||
|
||||
#define ETL_TARGET_DEVICE_GENERIC
|
||||
#define ETL_TARGET_OS_NONE
|
||||
#define ETL_IN_UNIT_TEST
|
||||
#define ETL_CALLBACK_TIMER_USE_INTERRUPT_LOCK
|
||||
#define ETL_CALLBACK_TIMER_DISABLE_INTERRUPTS
|
||||
#define ETL_CALLBACK_TIMER_ENABLE_INTERRUPTS
|
||||
|
||||
29
test/syntax_check/index_of_type.h.t.cpp
Normal file
29
test/syntax_check/index_of_type.h.t.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 BMW AG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <etl/index_of_type.h>
|
||||
29
test/syntax_check/manchester.h.t.cpp
Normal file
29
test/syntax_check/manchester.h.t.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 BMW AG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <etl/manchester.h>
|
||||
29
test/syntax_check/print.h.t.cpp
Normal file
29
test/syntax_check/print.h.t.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 BMW AG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <etl/print.h>
|
||||
29
test/syntax_check/ranges.h.t.cpp
Normal file
29
test/syntax_check/ranges.h.t.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 BMW AG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <etl/ranges.h>
|
||||
29
test/syntax_check/rounded_integral_division.h.t.cpp
Normal file
29
test/syntax_check/rounded_integral_division.h.t.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 BMW AG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <etl/rounded_integral_division.h>
|
||||
29
test/syntax_check/type_list.h.t.cpp
Normal file
29
test/syntax_check/type_list.h.t.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 BMW AG
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include <etl/type_list.h>
|
||||
@ -1,3 +1,31 @@
|
||||
/******************************************************************************
|
||||
The MIT License(MIT)
|
||||
|
||||
Embedded Template Library.
|
||||
https://github.com/ETLCPP/etl
|
||||
https://www.etlcpp.com
|
||||
|
||||
Copyright(c) 2026 John Wellbelove
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files(the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
******************************************************************************/
|
||||
|
||||
#include "etl/manchester.h"
|
||||
|
||||
#include "unit_test_framework.h"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user