Roland Reichwein
29d0cfec7c
Suppress false positive compiler warnings when compiling with -O3 ( #1389 )
...
* Print test names at test time (#1343 )
* Suppress false positive compiler warnings when compiling with -O3
The CI checks currently only check everything with -O0. Wenn activating
higher optimization levels, more warnings kick in. Leading to errors,
depending on the configuration.
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-04-14 12:38:59 +02:00
John Wellbelove
aeb8e4f734
Formatted source files
2026-04-02 14:11:45 +01:00
Roland Reichwein
b83cef5668
Fix compilation with -Wsign-conversion ( #1367 )
...
* Fix compilation with -Wsign-conversion
For tests with GCC and Clang
Fixes https://github.com/ETLCPP/etl/issues/632
* Fix support of negative Id in type_lookup.h: type_from_id
* Fix element access arithmetic in atomic_gcc_sync.h fetch_add/fetch_sub
* Fix rounded_integral_division.h: divide_round_half_odd(): direction is always 1
2026-03-28 11:15:56 +00:00
Daniel Santos
f718c54396
Add bounds and empty checks to container classes ( #1334 )
...
* add bounds and empty checks to containers
* address code rabbit review
* correct C++11 constexpr error
* rename new constexpr macro and make it global
* rename queue specializations' exceptions
* change front() implementation in locked queue specializations
* refactor usage of CONSTEXPR and NO_EXCEPT
* expand intrusive queue tests
* introduce lock guards on locked queues
* Print test names at test time (#1343 )
* revert mutex and return changes on locking queues
* finish reverting the locked queues
---------
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-03-27 10:17:56 +00:00
John Wellbelove
d884719098
Fixed all 'extra semicolon' warnings
2025-12-16 09:15:26 +00:00
John Wellbelove
5e689c0a66
Fix some sanitizer issues
2025-02-23 11:54:38 +00:00
John Wellbelove
96846f9b57
Removed 'possible nullptr' warning.
2024-04-01 16:57:46 +01:00
John Wellbelove
63d1a64e6c
#787 etl::expected doesn't compile with ETL_LOG_ERRORS
...
Updated CI scripts
#786 u8string
#783 Cannot insert existing value to full set
#781 etl::multi_span::iterator::operator *() fails if first span is empty
#780 endian enum_type produces useless-cast warnings
#779 hash.h: warnings produced with -Wfloat-equal
2023-11-24 09:59:35 +00:00
Soma Veszelovszki
93091cff0f
Fixed: move assignment not working for non-empty containers ( #759 )
2023-09-20 23:06:32 +01:00
John Wellbelove
363a3e2dab
Fix test array sizes
...
C++14 compiler compatibility
Updated test run scripts
Changed some ETL_ASSERT macros to ETL_ASSERT_OR_RETURN
Changed unit test macros for C++20 compaibility
Updated test run scripts
Updated CMake files to allow C++ standard selection
Replaced ETL_ASSERT_AND_RETURN with ETL_ASSERT_OR_RETURN
Updated C++14 & C++20 unit test compatibility
Changed native char8_t check
Added optional optimisation argument to bash script
2023-04-02 11:06:43 +01:00
John Wellbelove
044fc1b2ff
Improved emplace testing
...
Changed unit test macro CHECK_FALSE_EQUAL to CHECK_NOT_EQUAL
2023-01-07 18:46:59 +00:00
Alex Hirsch
a507f8f2a6
emplace member functions return reference to emplaced value ( #659 )
2023-01-07 12:18:55 +00:00
John Wellbelove
cd18cc6af0
Eradicated all GCC and clang warnings
2022-07-27 10:42:03 +01:00
John Wellbelove
baa47d1c33
Updated copyright notice
2022-06-10 21:45:37 +01:00
John Wellbelove
740e490aed
Tested ETL traits code.
2022-03-11 20:28:26 +00:00
John Wellbelove
33490aeaef
Fixes for < GCC 8
2021-11-21 18:09:01 +00:00
John Wellbelove
343dabe7e2
Fixes for < GCC 8
2021-11-21 17:29:56 +00:00
John Wellbelove
94575a1ac1
Fixes for Ubuntu 18
2021-11-21 17:09:16 +00:00
John Wellbelove
11fa2e4e38
Merge branch 'hotfix/remove-template-overload-abiguity' into development
...
# Conflicts:
# include/etl/forward_list.h
# include/etl/list.h
# include/etl/vector.h
# test/test_forward_list.cpp
# test/test_list.cpp
2021-11-19 11:23:50 +00:00
Bo Rydberg
e4431d3940
Fix compile error insert/assign two same types non-iterator ( #467 )
...
Assignent and insert_after of count and values of same types has to work
2021-11-19 11:04:41 +00:00
John Wellbelove
201ea97fe6
Latest implementations
2021-11-09 19:46:25 +00:00
John Wellbelove
a3eda2c2e1
Added 'make' functions to construct containers
...
Added tests for 'make' and 'template deduction'
2021-11-08 19:05:59 +00:00
CanastraRF
7c0f169b66
literal with suffix ( #416 )
2021-08-23 11:01:18 +01:00
John Wellbelove
dbfa71944f
Abstracted unit test framework header
2021-03-05 13:52:34 +00:00
John Wellbelove
18d8236f91
Conditionally disable template deduction guide tests
2020-09-29 11:23:10 +01:00
John Wellbelove
509089c0e2
Added template deduction guides
2020-09-28 13:14:12 +01:00
John Wellbelove
f4d9476900
Simplified conditional macros
2020-05-09 19:40:44 +01:00
John Wellbelove
e323f2267f
Changed http://www.etlcpp.com to https://www.etlcpp.com
2020-05-01 10:22:36 +01:00
John Wellbelove
83347ccfdd
Work in progress
2020-01-09 11:15:50 +00:00
John Wellbelove
5803d928a1
Merge remote-tracking branch 'origin/feature/no_stl_unit_tests' into development
...
# Conflicts:
# include/etl/stl/alternate/algorithm.h
# include/etl/stl/alternate/iterator.h
# include/etl/version.h
# library.json
# library.properties
# support/Release notes.txt
# test/test_no_stl_algorithm.cpp
# test/test_no_stl_iterator.cpp
# test/vs2017/etl.vcxproj
2019-12-01 18:21:10 +00:00
John Wellbelove
e8e4fa3f0d
Updated unit test project to support C++17
2019-09-28 11:25:25 +01:00
John Wellbelove
c43620d8d8
Various fixes.
...
void assign(const_pointer, size_t) did not set the truncation flag.
Fixed resize(0) error for etl::fixed_list
Removed erroneous pointers in etl::unordered_map::begin()
2019-07-13 12:33:52 +01:00
John Wellbelove
4b1aa0d6b5
Merge remote-tracking branch 'origin/feature/rvalue-references' into development
...
# Conflicts:
# include/etl/version.h
# support/Release notes.txt
2019-02-14 12:52:06 +01:00
John Wellbelove
f32924d5ed
Merge remote-tracking branch 'origin/feature/shared_pools' into development
...
# Conflicts:
# include/etl/forward_list.h
# include/etl/list.h
# include/etl/private/pvoidvector.h
# include/etl/state_chart.h
# test/vs2017/etl.vcxproj
# test/vs2017/etl.vcxproj.filters
2018-12-08 13:29:34 +00:00
John Wellbelove
02987191a5
Removed push(void) push_back(void) and push_front(void) function for containers.
2018-09-15 08:58:08 +01:00
John Wellbelove
bd008350a2
Merge remote-tracking branch 'origin/feature/changed_include_paths' into development
...
# Conflicts:
# include/etl/version.h
2018-07-28 21:55:27 +01:00
John Wellbelove
ab65a5abaa
Added std::initializer_list constructors when ETL_CPP11_SUPPORTED is defined as 1
2018-03-25 14:34:28 +01:00
John Wellbelove
b4bf215675
Removed unused variables
2018-02-11 18:45:10 +00:00
John Wellbelove
eb222f54bb
Containers are now deleteable through a pointer to their 'ixxxx' class.
2018-01-30 08:47:49 +00:00
John Wellbelove
bf06775b51
Added fast clear for types that are trivially destructible. (Integral and pointer types only for C++03)
2018-01-27 15:40:03 +00:00
John Wellbelove
0bfd212a54
Merge remote-tracking branch 'origin/development'
...
# Conflicts:
# examples/ArmTimerCallbacks/RTE/Device/STM32F401RETx/startup_stm32f401xe.s
# examples/ArmTimerCallbacks/RTE/Device/STM32F401RETx/system_stm32f4xx.c
# library.properties
# test/codeblocks/ETL.cbp
# test/codeblocks/ETL.depend
# test/codeblocks/ETL.layout
# test/vs2017/etl.vcxproj
# test/vs2017/etl.vcxproj.filters
2017-10-18 09:23:17 +01:00
John Wellbelove
dad0b8844a
Updated ignore
2017-07-26 12:05:36 +01:00
John Wellbelove
678984bf08
Merge branch 'Emplace' into development
2017-07-26 11:04:31 +01:00
John Wellbelove
044535d6d6
Merge branch 'Emplace' into development
...
# Conflicts:
# src/CreateFSM.bat
# src/CreateMessageRouter.bat
# src/flat_map.h
# src/fsm.h
# src/fsm_generator.h
# src/message_router.h
# src/message_router_generator.h
# src/queue.h
# src/vector.h
# test/codeblocks/ETL.depend
# test/codeblocks/ETL.layout
# test/data.h
# test/test_fsm.cpp
# test/test_message_router.cpp
# test/vs2017/etl.vcxproj
# test/vs2017/etl.vcxproj.filters
# test/vs2017/random.csv
2017-07-26 10:06:23 +01:00
John Wellbelove
f526a0172f
Added emplace functions supporting up to four parameters to the following containers.
...
forward_list
list
vector
queue
priority_queue
stack
# Conflicts:
# src/vector.h
# test/data.h
# test/vs2017/random.csv
2017-07-21 12:26:22 +01:00
John Wellbelove
c981bd0c96
Added emplace functions supporting up to four parameters to the following containers.
...
forward_list
list
vector
queue
priority_queue
stack
# Conflicts:
# src/vector.h
# test/data.h
# test/vs2017/random.csv
2017-07-21 11:59:40 +01:00
John Wellbelove
3f07a785f4
Fixed sort() so that it is now 'stable'.
...
Fixed return value type for const_iterator::operator->() in etl::list
2017-06-14 23:42:11 +01:00
John Wellbelove
fe640ce8ef
Merge remote-tracking branch 'origin/development'
...
# Conflicts:
# src/cyclic_hash.h
# test/codeblocks/ETL.cbp
2017-05-08 22:43:34 +01:00
John Wellbelove
26b7326d72
Updated Code::Blocks project.
...
Changed test project include paths to use unittest++ as sub-module.
2017-05-08 20:48:22 +01:00
John Wellbelove
79e33fbe81
Removed default constructor from 'non-default constructor' type.
...
Modified tests to compensate.
2017-02-25 20:32:27 +00:00