Run generator_test.py in CI checks - #1376
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughThe CI workflow was updated to replace the previous “Generate” step and the “Check Generated Headers For Changes” 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/workflows/generator.yml (1)
17-25:⚠️ Potential issue | 🔴 CriticalMissing
cogappdependency causes step failure.The
generator_test.pyscript invokespython3 -m cogappinternally (seescripts/generator_test.pylines 21-31), butpython3-cogappis only installed in the subsequent "Generate" step at line 24. This step will fail with aModuleNotFoundErrorforcogapp.Move the cogapp installation before running the test script:
Proposed fix
- uses: actions/checkout@v4 + - name: Install cogapp + run: | + sudo apt-get update + sudo apt-get install -y python3-cogapp + - name: Run generator_test.py run: | cd scripts && python3 generator_test.py - name: Generate run: | - sudo apt-get update - sudo apt-get install -y python3-cogapp cd include/etl/generators && bash generate.bat - name: Check Generated Headers For Changes🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/generator.yml around lines 17 - 25, The workflow installs python3-cogapp too late, causing generator_test.py (which calls python3 -m cogapp) to fail with ModuleNotFoundError; move the cogapp installation so that the "Generate" dependency (installing python3-cogapp) runs before the "Run generator_test.py" step (or combine/install python3-cogapp at the top of the job) so generator_test.py can import cogapp successfully—update the steps that reference the "Run generator_test.py" action and the "Generate" action accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In @.github/workflows/generator.yml:
- Around line 17-25: The workflow installs python3-cogapp too late, causing
generator_test.py (which calls python3 -m cogapp) to fail with
ModuleNotFoundError; move the cogapp installation so that the "Generate"
dependency (installing python3-cogapp) runs before the "Run generator_test.py"
step (or combine/install python3-cogapp at the top of the job) so
generator_test.py can import cogapp successfully—update the steps that reference
the "Run generator_test.py" action and the "Generate" action accordingly.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: fc4d9a5c-9207-429f-9e5e-2ead7ccedf51
📒 Files selected for processing (1)
.github/workflows/generator.yml
acd3be8 to
24cd4bb
Compare
|
Actually, I'm not sure that |
|
Agreed. Removed generator.bat, kept generator_test.py in CI check. |
ac23e7d to
0e2c633
Compare
commit e6a7642121b4bd34ee96e0edce26f4c071bfe495
Author: Drew Rife <darife@jlg.com>
Date: Wed Jun 24 11:51:02 2026 -0400
Add constexpr support for delegate construction and assignment (#1476)
* feat: Add constexpr support for delegate construction and assignment in C++14 and C++20
* docs: add more docstring coverage #1473
* docs: note constexpr availability for function-pointer overloads
Update docs/callbacks/delegate.md to reflect the new ETL_CONSTEXPR14
annotations on delegate(function_ptr) and create(function_ptr), and add
a paragraph to the Constexpr section explaining which function-pointer
APIs are usable in constant expressions at C++14 vs C++20.
#1473
---------
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
commit 05010aebf8107413097f599bb931cdcbc9d3f5c9
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Jun 24 14:39:06 2026 +0200
Fix ranges (#1475)
* Fix etl::get to preserve reference members for tuple rvalues
The rvalue-qualified overloads of etl::get (both the index-based and
type-based forms) unconditionally applied etl::move to the stored
element. For a tuple holding a reference member (e.g. etl::tuple<int&>),
this cast the referenced object to an rvalue instead of returning the
stored lvalue reference, diverging from std::get and failing to compile
when the result was bound to a non-const lvalue reference.
Forward the element with static_cast<element_type&&> instead, so that
reference members collapse to an lvalue reference while value members are
still moved. This is required to support tuples of references such as
those produced by the zip, enumerate and adjacent views.
* Make ranges views return non-const references to make them mutable
* Support type-changing transform_view
* Fix join_with_iterator reference type to match operator*
join_with_iterator declared reference = inner_trait::reference (e.g. int&)
while operator* returns value_type by value. For prvalue-yielding inner
ranges (e.g. repeat_view from a type-changing transform) the declared
reference was inconsistent with the actual dereference. Derive value_type
from the inner iterator's dereference and set reference = value_type,
preserving by-value semantics.
Add regression test for transform|join_with with prvalue inner ranges.
* Make join_with conform to [range.join.with.iterator] using inner/pattern common reference
* Clang-format
* Fix owning_view const begin()/end() by making _r mutable so chunk_view compiles over rvalue ranges
commit 1d5e9ea67f3b14238d473cc613c52f03a9475b52
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Jun 24 13:37:46 2026 +0200
Remove file writing tests for etl::random (#1474)
Some ETL random tests write to files but don't CHECK() anything.
Since they are left at the file system and were only used during
development, they can be removed now.
commit 5e5012c62c0467e73217ed59636d716761662237
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Jun 24 11:27:53 2026 +0200
Format user defined types in format.h (#1470)
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 8f4373e5554cdfda488b4a7048bf9661bedb8e28
Author: John Wellbelove <jwellbelove@users.noreply.github.com>
Date: Tue Jun 23 18:12:58 2026 +0100
Documentation updates (#1469)
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
commit d598337107fadd60ded4eb967d596e9cb362386e
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue Jun 23 19:11:17 2026 +0200
Fix code examples in documentation (#1471)
commit 4e11bc9d54a733c655beeb1f19d48c32a268c5dc
Author: John Wellbelove <jwellbelove@users.noreply.github.com>
Date: Tue Jun 23 18:04:26 2026 +0100
SFTP the documentation to the website on push to master (#1468)
* Workflow for deploying documentation
* Workflow for deploying documentation
* Workflow for deploying documentation
* Workflow for deploying documentation
* Workflow for deploying documentation
* Workflow for deploying documentation
* Workflow for deploying documentation
* Workflow for deploying documentation
* Workflow for deploying documentation
* Workflow for deploying documentation
* Workflow for deploying documentation
* Workflow for deploying documentation
* Workflow for deploying documentation
* Workflow for deploying documentation
* Removed mention of 'SCP'
* Added final newline
* Removed old script
* Test alternative 'copy docs to website' job.
* Updated to burnett01/rsync-deployments@8.0.5 as 7.0.2 is deprecated
* Removed test branch from the 'push' list
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
commit 2dabc42cbb7b320d3972b38d061c4bd50f5b5b23
Author: John Wellbelove <jwellbelove@users.noreply.github.com>
Date: Sat Jun 20 10:27:20 2026 +0100
Add etl::stable partition (#1466)
* Added two versions of etl::stable_partition
One is O(N) time , O(N) space
The other is O(Nlog(N)) time
* Added partition_move
* Updates to tests and documentation
* Review changes
* std::size -> sizeof
* etl::size -> ETL_OR_STL::size
* Changed index array typer to std::array
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
commit 55429eddd2ca155bb7016e7e2e2bf76a3ebe13b6
Author: John Wellbelove <jwellbelove@users.noreply.github.com>
Date: Sat Jun 20 10:26:03 2026 +0100
Only enable the assign and insert member functions for class ivector<… (#1467)
* Only enable the assign and insert member functions for class ivector<T*> & class ivector<const T*> when the value_type the iterator references is a pointer to T.
* Imporoved enable_if for assign and insert.
* clang-format
* std::void_t -> etl::void_t
* Made enable_if condition into a common class struct
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
commit 04b7004110a2a916d85c69a03c22c36f0a44990d
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Sat Jun 20 10:57:06 2026 +0200
Add emplace() to etl::map and further containers (#1462)
commit 6df8842a210a57fc6cedb6e545dd463aaab460ab
Author: Timon Zijnge <47081647+tzijnge@users.noreply.github.com>
Date: Thu Jun 18 12:29:38 2026 +0200
#1461 Invalid version detected with CMake FetchContent from URL (#1465)
* Bold project documentation link in README
* #1461 Invalid version detected when used with CMake FetchContent from URL
* Reject a .git dir that belongs to a parent project, e.g. when fetched as a URL tarball with no .git of its own
* Update documentation on including ETL in another project with CMake's FetchContent
---------
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
Co-authored-by: tzijnge <someone@somewhere.com>
commit c6d17b3a8d55c1bc8989a99e28f29dfad4a88685
Author: John Wellbelove <jwellbelove@users.noreply.github.com>
Date: Thu Jun 18 10:35:20 2026 +0100
Fixes and additional metafunctions for etl::type_list (#1460)
* New metafunctions for type_list
* clang-format changes
* Corrections from review
* Removed commented out code
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
commit c32f9cc862e4f3762e96895f78f890001eac00f2
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Jun 17 13:31:53 2026 +0200
Fix using libc++ (#1463)
Before, libstdc++ was used in both gcc and clang builds.
Fix includes an adjustment to consider in NO_STL case.
Now build with libc++ in separate github workflows with clang.
commit 20cab3225691a9782f422ad1ad132f3f8ce5cf8a
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Sat Jun 13 11:00:39 2026 +0200
Make ipriority_queue non-sized base class (#1459)
* Fix iterator access algorithm.h
Move from operator[] access to operator+ and operator- to prevent
limited compatibility. This worked before for vector because of
iterators being ptrdiff_t (signed), but not for unsigned access
like size_t as in etl::queue.
* Make ipriority_queue non-sized base class
Fixes issue #1457
---------
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 6d9ed143b28a72170e94b5e6a3cee278ef3d62dc
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Fri Jun 12 09:04:24 2026 +0200
Add etl::infinite_loop (#1458)
commit 4f9618d8df434b9d9768965925f4d231755b5aec
Author: Christoph Rüthing <christoph.cr.ruething@bmw.de>
Date: Mon Jun 8 16:23:35 2026 +0200
Make Constructors of Atomics for trivial Types constexpr (#1453)
* Bold project documentation link in README
* Add constexpr to trivial Atomics
According to https://en.cppreference.com/cpp/atomic/atomic/atomic the constructors of atomics should be constexpr. This change marks (at least for the trivial types) the constructor as constexpr.
---------
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
commit 1ca5bb012fd155ac0d3ddfaafeeba5578059c9a2
Author: John Wellbelove <jwellbelove@users.noreply.github.com>
Date: Mon Jun 8 14:16:52 2026 +0100
to string() does not handle floating point number with integer part exceeding max uint64 t (#1455)
* Added 'scientific' flag to basic_format_spec to allow forcing of scientific format for all floating point values.
* Forces floating point numbers that are larger than than the internal integral workspace types to be formatted in scientific format.
Also allows scientific format to be forced for all floating point output.
NAN and INF outputs now follow case settings, as does the new scientific exponent letter. 'e' or 'E'.
* treefmt changes
* Quick fixes
* Removed <format>
* Added tests for NAN and INF
Fixed result for -INF
* Added tests for upper and lower case scintific format.
* Changed incorrect stream header from <strstream> to <sstream>
* Update test_to_string.cpp
* Update test_to_u16string.cpp
* Update test_to_u32string.cpp
* Update test_to_u8string.cpp
* Update test_to_wstring.cpp
* clang-format updates
* clang-format updates
* Re-coded the precision calculation in add_floating_point_scientific to match add_floating_point_non_scientific
* Rename step 1
* Fix: rename docs/Messaging to docs/messaging
* Rename step 1
* Fix: rename docs/Messaging to docs/messaging
* Rename step 1
* Fix: rename docs/Messaging to docs/messaging
* Changed incorrect stream header from <strstream> to <sstream>
* Update test_to_string.cpp
* clang-format updates
# Conflicts:
# test/test_to_string.cpp
* Remove old docs folder
* clang-format updates
# Conflicts:
# test/test_to_string.cpp
* Re-commit missing file
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
commit 9b56ffe676f5e9b3c5056745778049800ac33c8a
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Mon Jun 8 11:16:22 2026 +0100
Fix: rename docs/Messaging to docs/messaging
commit b969b2c46c28b871db76f2c9ee6c8e27abb83427
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Mon Jun 8 11:16:02 2026 +0100
Rename step 1
commit b3ade470b0c7d013137ad88400b7ade30d53a176
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Mon Jun 8 11:05:31 2026 +0100
Fix: rename docs/Messaging to docs/messaging
commit 9907ab3b684a7c617525e1df198c1fae00522e62
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Mon Jun 8 11:04:58 2026 +0100
Rename step 1
commit 12792e418f7f6e08f8bb4d9dd24eafe6c5730c21
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Mon Jun 8 10:42:41 2026 +0100
Fix: rename docs/Messaging to docs/messaging
commit f383184b0e6b3e7b3737fa37da1a16cf4e15b982
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Mon Jun 8 10:42:10 2026 +0100
Rename step 1
commit eed3d0b7b00a5be6222e663550d14fa66af96f45
Author: John Wellbelove <jwellbelove@users.noreply.github.com>
Date: Mon Jun 8 08:58:47 2026 +0100
Hotfix/documentation updates (#1456)
* message_router and fsm documentation corrections
* message_router and fsm documentation corrections
* message_router and fsm documentation corrections
* Delete docs/Messaging/message-router.md
The folder is no longer valid.
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
commit 4a88884b3972aad9495713ec9902323c1986ab9c
Author: John Wellbelove <jwellbelove@users.noreply.github.com>
Date: Sat Jun 6 13:12:44 2026 +0100
Issue/add hugo support for documentation (#1449)
* Add ranges
* Initial Hugo setup
* Work in progress
* Added selection for local or remote site
* Updated to 'light' theme
* Changed to using Hextra Hugo theme
* Changed to using Hextra Hugo theme
* Changed to Hextra Hugo theme
* Change to Hextra Hugo theme
* Updated Hugo setup.
* Updated Hugo setup.
# Conflicts:
# docs/releases/_index.md
* Work in progress
* Added new fonts
Added new documentation
* Latest documentation updates
* Latest documentation updates
# Conflicts:
# docs/containers/array.md
# docs/containers/array_view.md
# docs/containers/array_wrapper.md
# docs/containers/bip_buffer_spsc_atomic.md
# docs/containers/bitset.md
# docs/containers/indirect_vector.md
# docs/containers/vector.md
# docs/getting-started/compilers.md
* Added bloom_filter markdown doc
* Added more documentation
Updated CSS for light and dark modes
* Fixed some menus
Added mode documentation files
* Updated CSS rules
Added badges to home page
Added uniqur_ptr + pool tutorial
* Fixed formatting on the home page markdown
Modified light amd dark code formatting
* Updated unique_ptr-with-pool
* Added container and shared message tutorials
* Updates to documentation
* Added const_multimap
* Updated source-formatting.md
* Added initial raw text files form Web site editor
* Innore coverage build directory
* Exported raw text documentation files from the web site editor
* Hugo updates
* Added Hugo intalation and markdown descriptions
* More addition to the documentation
* Added closure.md and updates to delegate.md
* Added format.md
* Added documentation for etl::delegate_observable, etl::function, Base64 codec
* Added io_port documentation
* Added basic_format_spec
* Added documentation for string_stream and string utilities.
* Added more documentation
Updated the documentation CSS
* Added documentation for clocks, day, duration
* Added more documentation for chrono classes
Updated callouts
* More chrono documentation
* Completed chrono documentation
* Maths functions documentation
* Completed maths documentation
* Completed maths documentation
* Completed maths documentation
* Completed maths documentation
* Added multiple documentation files
* Added iterator.md
* Added debug_count.md and versions.md
* Added debug_count.md and versions.md
* Added more documentation
* More documentation
* Added some design pattern documentation
Modified some of the layout files
Modified the About documentation
* Converted more documentation pages
Modified the site CSS
* Added more documentation
Moced some documentation files to new directories
* Added more documentation
Tweaks to CSS
* Added callback_timer_deferred_locked documentation
* Added callback_timer_locked documentation
* More documentation updates
* More documentation updates
* More documentation updates
* New documentation files.
Harmonised file name format
* New documentation files.
* Multiple document updates
* Multiple document updates
* Final conversion of web pages
* Updates before PR
* Updates before PR
* Updates before PR
# Conflicts:
# docs/blog/_index.md
* Final pre PR updates
* Updates to message framework documentation
* Renamed directory
* Fix spelling
* Added author and date to blog files
Moved documentation files merged from development
* Fixed 'Description' typo
* Fix typos
# Conflicts:
# docs/IO/io_port.md
# docs/containers/sets/const-multiset.md
# docs/containers/sets/const-set.md
# docs/maths/correlation.md
# docs/maths/gamma.md
* Renamed two files to lower case
* Minor renaming
* Added author and date
* Updated callout on bresenham_line.md
Added support for showing the ETL version on the documentation first page, by copying the version.txt file as a hugo asset.
Updated the Python 'update_release.py' to copy 'version.txt'
* Replace space in filename with hyphen.
Added more information to hugo-commands.md
* Replace space in filename with hyphen.
Added more information to hugo-commands.md
# Conflicts:
# docs/getting-started/view-the-docs-locally/hugo-commands.md
* Added a link to pseudo_moving_average.md
* Updated title pages for groups
* Fixed missing 404 for non-existent pages
* Fixed coordinate variable names in the 'Calculating the intersection' example
---------
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.co.uk>
commit 42a21a92e86908267022230ade61ced8224c982b
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Thu Jun 4 23:34:59 2026 +0200
Fix copy and move in signal.h (#1454)
* Fix copy and move in signal.h
* Delete copy and move in callback_service.h
The implicitly provided copy and move copied internal pointers
which are invalid after copying.
* Delete copy and move in delegate_service.h
The implicitly provided copy and move copied internal pointers
which are invalid after copying.
commit e379c1354383dc937df10ddf2e7d4463a27114b0
Merge: 7e782b85 2d7ddb05
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Mon Jun 1 11:34:59 2026 +0100
Merge branch 'serges147/master' into development
# Conflicts:
# include/etl/intrusive_avl_tree.h
commit 7e782b850db1dd4de78dc1dc8522fac19daeaaa2
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Mon Jun 1 11:32:10 2026 +0100
Added documentation deploy action to www.etlcpp.com
commit 8a782cc7f121b9c60db59b325a0802c1f14191d8
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Sun May 31 20:32:38 2026 +0200
Add more constexpr to constructors (#1450)
* Add more constexpr to ctors
* Adjust operator!=() in fixed_iterator.h
Instead of taking an iterator by reference, take it by value as
done in the other operators and overloads.
* Initialize move_iterator() current member
Prevent indeterminate values
* Fix fixed_iterator::operator* return type
fixed_iterator::operator* returned value_type by value, so writes like *it = ...
modified a temporary rather than the underlying location. This broke the
iterator’s intended use (e.g., writing to a fixed register/memory location).
Now returning iterator_traits<TIterator>::reference instead (const and
non-const overloads).
* Fixed move_iterator::operator+= and operator-= return type
move_iterator::operator+= / operator-= returned by value, but RandomAccessIterator
requirements (and std::move_iterator) expect these to return move_iterator&.
Returning by value also added an unnecessary copy and could break generic code
expecting reference semantics.
commit e3fad3c908ddbbb0838820ab178415589f5d2dc2
Author: Sergei <sergej.shirokov@gmail.com>
Date: Sun May 31 11:49:55 2026 +0300
Add etl::intrusive_avl_tree class. (#1425)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Added etl::intrusive_avl_tree class.
* PR review minor fixes.
* Fix `std::move` -> `etl::move`
* Apply AI spell checking
* Try to fix C++03 build.
---------
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit af3944acdbb0ee05245f973056d77a536c2ce1ec
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue May 26 10:11:24 2026 +0200
Fix iterator_traits: make SFINAE-friendly for iterators without nested typedefs (#1447)
The primary etl::iterator_traits template previously required all five
nested typedefs (iterator_category, value_type, difference_type,
pointer, reference) to exist, causing hard compilation errors with
iterators like std::common_iterator or ranges::common_iterator.
Changes:
1. Make primary template SFINAE-friendly: split into an empty primary
template and a void_t-guarded partial specialization that only
activates when all nested typedefs are present.
2. Add explicit std::common_iterator specialization (C++20/STL): a
partial specialization that delegates to
std::iterator_traits<std::common_iterator<I,S>>.
3. Fall through to std::iterator_traits: the empty primary template
inherits from std::iterator_traits<TIterator> when building with
STL and C++20, so any iterator with a std::iterator_traits
specialization works automatically.
4. Remove iterator_traits dependency from etl::vector: assign() now
uses decltype(*first) for the type-compatibility static assert,
and insert() uses ptrdiff_t directly instead of querying
iterator_traits<TIterator>::difference_type.
commit 9765cbf7643ea2f49e16441847296bba7aab2aa0
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue May 26 05:19:42 2026 +0200
Fix format: float zero-padding, nested replacement width, octal alternate form, and extreme doubles (#1442)
format.h:
- Fix float zero-padding ({:010f}): output sign first, then zero-fill,
then the unsigned formatted value, matching std::format behavior.
- Fix nested replacement fields ({:{}d}): consume the value's auto-index
in parse_format_spec before parsing nested width/precision fields, so
auto-indexing order matches the C++ standard.
- Fix {:#o} with value 0: produce "0" instead of "00" by skipping the
octal prefix when the value is zero.
- Fix format_floating_default overflow for extreme doubles (DBL_MIN,
DBL_MAX): fall back to scientific notation for values >= 1e18 or
tiny positives < 1e-6, delegating to format_floating_e.
- Fix format_floating_e precision loss: replace iterative multiply-by-10
normalization loop with O(1) log10/pow/floor computation.
- Add resolve_nested_replacements helper to extract width/precision
from format args at formatting time.
test_format.cpp:
- Add tests for float zero-padding, nested replacement width, octal
alternate form with zero, float sign/width/alignment, negative floats,
scientific notation for large/small values, default-to-scientific
switch, positive zero, brace escaping, and integer limits.
format.h + platform.h:
- log10l fix for different toolchain support:
Define ETL_FORMAT_NO_LONG_DOUBLE_MATH in the profile if libm doesn't
provide log10l. This is identified by linker error missing this symbol.
It was identified with the llvm/clang cross toolchain for ARM.
commit 41174ed7f6eedc0be4bbfdebc021453af7785df7
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue May 26 05:18:27 2026 +0200
Add missing constexpr to intrusive_links.h constructors (#1446)
commit 6bb9841dae6b8101a936b885c9577b9dfde88224
Author: SamHalvoe <46531812+SamHalvoe@users.noreply.github.com>
Date: Mon May 25 21:47:34 2026 +0200
added Pico and additional Teensy defines (#1444)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* added Pico and additional Teensy defines
* fix format
---------
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: SamHalvoe <SamHalvoe@users.noreply.github.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 652034603b060e1af990a61b5266d5876da21fe4
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Mon May 18 09:01:17 2026 +0200
Add test/run-clang-tidy.sh (#1409)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Add test/run-clang-tidy.sh
Also, add .clang-tidy configuration file.
In test/syntax_check/CMakeLists.txt, make ETL headers non-system headers.
Added .github/workflow/clang-tidy.yaml. Does not break the build for now
on clang-tidy findings/warnings.
Fix syntax issues
Those issues were uncovered by making ETL headers
non-system headers in test/syntax_checks/CMakeLists.txt
* Fix macro syntax
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 373247e5c15e4342502848fd2175decbafc58895
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Mon May 18 08:14:26 2026 +0200
Make etl::variant capable for ROM placement and optimize runtime size (#1441)
Via an variadic_union, the internal storage is adjusted to be
able to be constexpr.
commit eba472fa3a69471d7366dfdb694361f36899a580
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue May 12 21:02:32 2026 +0200
Simplify and fix test/run-syntax-checks.sh (#1432)
commit 57d386769472f99ea4f63e2573ef9de0cad27f72
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Sat May 9 10:29:18 2026 +0200
Fix the case of using STL without pthreads but with mutexes (#1433)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Fix the case of using STL without pthreads but with mutexes
On non-POSIX targets in STL mode, std::mutex is included from
mutex.h but will probably miss pthreads. Instead, other
implementations might be detected and used in mutex.h.
Therefore, adding ETL_NO_STD_MUTEX as a profile option for ETL.
Further, removing unnecessary includes from queue headers.
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit f6f145c5e5ecdd43789df510d4fe8b5c7c9ac3e1
Author: Sergei <sergej.shirokov@gmail.com>
Date: Fri May 8 11:33:21 2026 +0300
Apply the rule of zero for `etl::optional` type. (#1426)
* Apply the rule of zero for `etl::optional` type.
Correct move behavior of `TestDataM` - it should preserve `valid` value.
Implemented overloads of `etl::make_optional` free function.
Extend optional moveable tests
- fundamental vs non-fundamental
- move construct/assign from valueless
- Verify nothrow of `etl::swap` for `etl::optional`.
* coderabbitai review fixes.
---------
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 079b3345d9f2e0b6048e40e9e0735dcef119ec04
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed May 6 19:26:10 2026 +0200
Various bugfixes (#1428)
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit c9198d089c96e66f0547e9b91914d62d8e43838f
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed May 6 11:16:20 2026 +0200
Add format checks at compile time to format.h (#1419)
* Add format checks at compile time to format.h
* format.h: Refactor padding calculation
* format.h: Code cleanup
commit a5d279d5e450732af3a7a23c35f7ed648d419ad3
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed May 6 11:13:02 2026 +0200
Fix sanitizer use (#1429)
* Fix sanitizer use
A case issue prevented adding sanitizer in the tests.
* Fix compiler warnings from actual sanitizer use
commit fe17d32e9bcbfabcb25cc4d00a810bcd8527e8c4
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed May 6 11:10:14 2026 +0200
Fix meson build (#1431)
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit e8206cca83d2525bc054507d0efc218dfe6d951d
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed May 6 10:10:10 2026 +0200
Remove unnecessary includes (#1434)
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit fdfd17a1c2d7259ed5c9093b354fe5fd31fad92b
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Wed Apr 8 15:30:53 2026 +0100
Added missing format and print headers from VS2022 project
commit 4f411c66a92298bb4dfd1ab6b1d02d97af8453bb
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Sun May 3 22:49:02 2026 +0200
Remove dead code (#1427)
Removing private class members, code unused by ETL in "private"
namespaces, code unreachable via preprocessor guards (C++11 inside
C++03).
For code still to be kept, even though unused at first sight, add
tests.
commit 2d7ddb056cab70dd3d04bb01e9f85681db63af80
Author: Sergei Shirokov <sergej.shirokov@gmail.com>
Date: Sat May 2 17:25:23 2026 +0300
PR review minor fixes.
commit 1ea8473fe149c946a9bb4de8d668ce1b03c81177
Author: Sergei Shirokov <sergej.shirokov@gmail.com>
Date: Fri Feb 6 18:08:11 2026 +0200
Added etl::intrusive_avl_tree class.
commit b9b36d81557bb256292935780a5d34f1de060e57
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Thu Apr 30 12:30:01 2026 +0200
Add bazel support (#1420)
* Add bazel support
* Add github workflow for bazel
commit a2e274bbc5cfd4220f6899307473ff80756420d7
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Thu Apr 30 12:27:12 2026 +0200
Run C++26 workflows with docker (#1421)
Ubuntu 26.04 is not available in github workflows directly and won't be soon.
But ubuntu-26.04 is available as docker container. So use it for running
C++26 workflows which were disabled previously.
commit d1fe2938e196df4668d0c59888b4ec7a36f39c2f
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Apr 29 10:11:02 2026 +0200
Remove unused reinstall-cmake.sh (#1422)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Remove unused reinstall-cmake.sh
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit a1cd6a5569afab04439a5c0e20b4786fb1a04bec
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Apr 29 09:33:56 2026 +0200
Activate -O3 in CI builds for C++23 (#1415)
* Activate -O3 in CI builds for C++23
For good coverage of potential warnings triggered by -O3, activate
it for:
* .github/workflows/clang-c++23.yml
* .github/workflows/gcc-c++23.yml
So additionally necessary CPU resources are limited.
* Use Ubuntu-24.04 to test C++23
---------
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 943e8e60891aacf37e0dfd29badaf44b50ccaba2
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue Apr 28 15:35:21 2026 +0200
Add invocable and further missing concepts to concepts.h (#1412)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Add concept invocable and further missing concepts to concepts.h
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 15ca12649e9273f6243cf69183038b4fff63fa38
Author: Joris Putcuyps <joris.putcuyps@gmail.com>
Date: Tue Apr 28 14:13:55 2026 +0200
Global namespace bitset free functions cleanup (#1411)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Keep comparison and swap free functions out of the global namespace and
let ADL do its thing.
* Apply the same global to etl namespace move on overlooked functions
---------
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit ee0d4740b3a27aaefbcd6b8e6960080202836d4b
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue Apr 28 11:43:54 2026 +0200
Add begin() and end() to etl::expected (#1410)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Add begin() and end() to etl::expected
* Adding error_or() to etl::expected
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit fe7b2da10cabfad4aa2f0808b36fc6c60224301b
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue Apr 28 11:03:25 2026 +0200
Fix missing tuple_size (#1407)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Fix missing tuple_size
In case of certain clang versions, a wrong combination of activated
and deactivated template forward declarations and specializations
were provided.
This led to redefinition errors and specialization errors.
Now aligning those combinations, and providing definitions from
<utility> from std in the STL using case.
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 5ccbc6fbff06f523c44fbc563681a0a9fe28a93f
Author: Joris Putcuyps <joris.putcuyps@gmail.com>
Date: Tue Apr 28 10:23:52 2026 +0200
Swap can be part of the etl namespace and let ADL do its thing (#1414)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Swap can be part of the etl namespace and let ADL do its thing
---------
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit ff772d4bd15ede7574088ac8e844ed509ef1f8aa
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue Apr 28 09:57:21 2026 +0200
Move operators for etl::unique_ptr to etl namespace (#1408)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Move operators for etl::unique_ptr to etl namespace
This is in accordance with the operators of std::unique_ptr. Also,
it doesn't pollute the global namespace, and also works together
with ADL, finding the operators in the etl namespace now.
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 43e97b7f3cdcb0aefbeff4934ab746b9594941c9
Author: Joris Putcuyps <joris.putcuyps@gmail.com>
Date: Tue Apr 28 09:30:23 2026 +0200
Expected actually doesn't require a monostate. (#1413)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Expected actually doesn't require a monostate.
* Better naming, since uninitialised isn't an option for expected.
---------
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit b96c2a9ecd5e38d946af21d4e990ee87e817d87a
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Mon Apr 27 22:49:39 2026 +0200
Consolidate Dockerfile non-root user to vscode (#1417)
Previously, we had differently named default users in the
containers.
commit fbd738db691c41804cee60ffe87e5f94528c3fa3
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Apr 22 13:28:47 2026 +0200
Replace deprecated builtin __is_trivially_relocatable if possible (#1402)
Fixes: #1400
commit a97817010ec436327e3b28110f7e9f40823e02c2
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Apr 22 12:37:53 2026 +0200
Make etl::variant and etl::vector methods noexcept (#1383)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Make etl::optional, etl::variant and etl::vector methods noexcept
Adding type traits supporting the respective conditional noexcept
Fix missing etl::move() in etl::optional move constructors
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 2b1dec0e7976b2d6cdaae42853e01abd3b45f7ef
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Apr 22 11:31:51 2026 +0200
Run generator_test.py in CI checks (#1376)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Run generator_test.py in CI checks
* Remove running generator.bat in CI checks
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit b860326b267832dc5b21e853f9bb4948b92d7dc4
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue Apr 21 15:27:43 2026 +0200
Fix delegate not being cleared by assigning empty braces (#1401)
* Fix delegate not being cleared by assigning empty braces
Fixes issue #1399.
The non-capturing lambda support (PR#1295) added a non-explicit
delegate(function_ptr) constructor and operator=(function_ptr). This
caused `delegate = {}` to implicitly convert `{}` to a null function
pointer and bind it via function_ptr_stub, leaving the delegate
appearing valid (stub != nullptr) but invoking through a null pointer
(undefined behavior).
Fix:
- Mark delegate(function_ptr) constructor explicit to prevent implicit
conversion from `{}` during initialization.
- In operator=(function_ptr), clear the delegate when fp is null
instead of binding a null pointer through function_ptr_stub.
Added tests verifying that both `delegate d = {}` and `d = {}` produce
an invalid (cleared) delegate.
* Fix Dockerfile for powerpc cross build
Debian snapshot sources were mixed with plain sid sources which
mismatched after a while. Now, aligning all sources from snapshot
server.
commit bbf74c5334ed6812f50b9f674b4b7e15bc8e36d9
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Sun Apr 19 13:19:53 2026 +0200
Optimize formatting in format.h for float values (#1379)
When formatting float, fix the -0.0 case
format.h float format: Fix rounding issues on all platforms
commit ff65c753d6a7218e296c49e007af38424236a535
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Sat Apr 18 17:13:43 2026 +0200
Actually use ETL_USE_BUILTIN_MEM_FUNCTIONS to decide about macro defi… (#1398)
* Print test names at test time (#1343)
* Fix operator| conflict with std::ranges (#1395)
* Actually use ETL_USE_BUILTIN_MEM_FUNCTIONS to decide about macro definitions
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 5dc682b7ffec0fad9285b9ec6f0967019386d4ee
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Apr 15 15:53:29 2026 +0200
Support for C++26 (#1375)
Includes C++26 related infrastructure macros.
Fixes compile errors when compiling under C++26.
Initially supported C++26 features:
- [[indeterminate]]
- new 2022 ISO prefixes in ratio.h
- atomic fetch_max() and fetch_min()
- is_virtual_base_of
- is_trivially_relocatable and trivially_relocate
- saturation arithmetic: add_sat, sub_sat, mul_sat, div_sat, saturate_cast
commit f858b8a72ddff1f16d6481f543bc4ccf8e177bbb
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Apr 15 11:27:57 2026 +0200
Add installed dependencies for docker, documentation (#1377)
* Add development tools to docker image
python3-cogapp, clang-format, treefmt
Add script to run development environment in docker container
Document docker use in docs/docker.md
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 866c8a315ed87c1319f96fa31bfeccd0c4728ab9
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Apr 15 10:47:52 2026 +0200
Extensions for testing (#1380)
* Extensions for testing
Generalize run-tests.sh
Test all C++ versions at once
Fix combination of big endian and -Wsign-conversion
Failed on s390x (as reference for big endian)
Add github workflow for s390x
Add armhf container files
Devcontainers for i386 and riscv
Add github workflows for armhf, i386 and riscv64
Add run-tests.sh for foreign architectures
Document testing in doc/testing.md
Adjustments from clang-format run
Fix .devcontainer/s390x/Dockerfile for linebreak syntax
Fix exit code of run-test.sh
Previously, "exit $?" was used, actually the return value of
FailedCompilation and FailedTest which are always 0.
Now just using 1.
In run-tests.sh at ctest, use -V for printing number of tests unconditionally
While ctest suppresses individual test list by default, it didn't even
print the number of tests anymore, as run_tests.sh does because
it suppresses it output completely.
Now, by default print number of tests, and in verbose mode, print test list
in addition.
* Support powerpc as foreign architecture
* Add SFINAE constraints to etl::begin/end and reverse iterator free functions
The unconstrained etl::begin(), etl::end(), etl::cbegin(), etl::cend(),
etl::rbegin(), etl::rend(), etl::crbegin(), and etl::crend() templates
in the no-STL code path were matching iterator types during ADL, causing
a hard error with GCC 15's std::ranges::begin. When std::ranges performed
ADL on an etl::*::iterator, it found etl::begin() as a candidate; since
the iterator type has a nested iterator typedef, the return type TContainer::iterator
was valid, but calling .begin() on the iterator failed.
Fix: add etl::void_t<decltype(...)> SFINAE guards to each template,
ensuring they only participate in overload resolution when TContainer
actually has the corresponding member function (.begin(), .end(), etc.).
* - Fix red unit tests on 32 bits big-endian platform.
* Document powerpc architecture for testing
* Use Dockerfiles in cross testing github workflows
Synchronizes environment setup for github workflows to what is
defined in the development Dockerfiles. So they don't need to
be maintained separately.
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: Sergei Shirokov <sergej.shirokov@gmail.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 17799452d26f4dd534974aac54c5e441896becb1
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Apr 15 10:09:28 2026 +0200
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>
commit 29d0cfec7cdc14481a9cced4bcf7dc661398af55
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue Apr 14 12:38:59 2026 +0200
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>
commit f258fe4af8672d50baece68288f827f60d653514
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue Apr 14 11:56:05 2026 +0200
Fix operator| conflict with std::ranges (#1395)
commit 3e4d41ca57de475f4b769320308e80a103c8f5d6
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue Apr 14 11:56:05 2026 +0200
Fix operator| conflict with std::ranges (#1395)
commit b14f70698f5ff309bfc49e25f96fd95beaaf0320
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue Apr 14 11:48:03 2026 +0200
Fix chrono.h year_month_weekday_last and year_month_weekday sysdays() (#1396)
* Print test names at test time (#1343)
* Fix chrono.h year_month_weekday_last and year_month_weekday sysdays()
Bug 1: year_month_weekday_last::operator sys_days() — wrong weekday construction
The code was constructing a weekday from a raw day count using weekday(unsigned),
which treats the value as a weekday encoding (0–6). The fix uses weekday(sys_days),
which correctly accounts for the epoch being a Thursday (+4 offset).
Bug 2: year_month_weekday::operator sys_days() — same wrong weekday
construction + off-by-one in day_of_month
Same weekday(unsigned) vs weekday(sys_days) issue. Additionally, the day_of_month
calculation was missing the 1 + base — it computed a 0-based offset from day 1,
but forgot to add the 1 back when converting to an actual day number.
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit beeb4cf462b748cb890fd4b9abff75bb0a981ede
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Sat Apr 11 10:38:39 2026 +0200
Fix coverage workflow for action version (#1384)
* Print test names at test time (#1343)
* Fix coverage workflow for action version
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit f118c2807afcfdc31d2e95a35624070a8afe1faf
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Sat Apr 11 10:16:03 2026 +0200
Fix broken syntax from clang-format reformat (#1385)
* Print test names at test time (#1343)
* Fix broken syntax from clang-format reformat
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit ae6ca929c1d1936dd3d8127cd66e7c75988f51d0
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Sat Apr 11 10:10:17 2026 +0200
Rename _current to _current_it in ranges.h (#1387)
* Print test names at test time (#1343)
* Rename _current to _current_it in ranges.h
Resolves conflict with _current macro from Zephyr and improves
self-explanation of variable.
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 7971824914eb58c21868d9cf43c8b019b1c46418
Author: John Wellbelove <jwellbelove@users.noreply.github.com>
Date: Thu Apr 9 07:21:19 2026 +0100
Add the ability to specify the callback type to etl closure (#1393)
* Print test names at test time (#1343)
* Modified closure to accept the callback type as a template parameter
* Modified closure to accept the callback type as a template parameter
* Applied clang-format
* Fixed C++03 compatibility
* Fixed C++03 compatibility
# Conflicts:
# include/etl/closure.h
---------
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
commit 8dc0301a6747945c263c5c5cfa678eee9f4c5edc
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Apr 8 17:58:12 2026 +0200
Document etl::format_to and etl::print (#1378)
* Print test names at test time (#1343)
* Document etl::format_to and etl::print
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
commit 912e22f238b707edc4d47d830f61f922cea79d70
Merge: 654e222b 1a6762d6
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Sun Apr 5 14:32:40 2026 +0100
Merge branch 'development'
commit 1a6762d6c38dc12bf6c84884e0ccb650706e5c1f
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Sun Apr 5 14:13:22 2026 +0100
Updated version and release notes
commit ee04aa76c5aa66345096483f8abc014c14a29d1f
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Sun Apr 5 14:03:25 2026 +0100
VS2022 project update
commit 3cd03fcb7f1c59fb27582e3e8ce744440bf5c092
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Sun Apr 5 14:37:15 2026 +0200
Fix initializer_list use in algorithm.h and definition of data() in iterator.h (#1374)
* Print test names at test time (#1343)
* Fix initializer_list use in algorithm.h
Needs to be conditional.
* Move definition of data() in iterator.h
Needs to be defined earlier.
---------
Co-authored-by: John Wellbelove <john.wellbelove@etlcpp.com>
commit 654e222bd9374d5404d5886cf746b8a276f3746e
Merge: 22ee7691 a1ad1336
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Sat Apr 4 10:50:06 2026 +0100
Merge branch 'development'
commit a1ad13364e9e48717beb766cb77f8c946b00c385
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Sat Apr 4 10:49:00 2026 +0100
Updated release notes
commit 22ee76914d7999f4605f93a1651e55016383570d
Merge: a0c98662 e2bed928
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Sat Apr 4 10:02:24 2026 +0100
Merge branch 'development'
# Conflicts:
# test/main.cpp
commit e2bed928146fe4392fa8f02c8a058527829240d7
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Sat Apr 4 09:40:46 2026 +0100
Updated version and release notes
commit 576b03f38db24bc7c1284667b4790296d6670dbe
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Sat Apr 4 00:14:49 2026 +0100
Merged from local copy of PR1295
commit f7e1384a70b17705fd7f531fd2e6298f47ee9002
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Fri Apr 3 20:09:06 2026 +0100
Merge development
commit e61589ebf207eb3ac8c15b5ba8a34429a6b983d3
Merge: 1ce3deb0 823f2493
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Fri Apr 3 20:08:41 2026 +0100
Merge branch 'development' into delegate-from-non-capturing-lambda
# Conflicts:
# include/etl/private/delegate_cpp11.h
# test/test_delegate.cpp
commit 823f2493b440f09c051800061be1747a3657bd79
Author: Maksim Danilov <mdanilov@me.com>
Date: Fri Apr 3 18:35:41 2026 +0200
Rename 'leaf' to 'child' in intrusive_links.h (#1373)
* Print test names at test time (#1343)
* Rename 'leaf' to 'child' in intrusive_links.h
Recent versions of the Tasking TriCore compiler treat
'leaf' as a reserved C++ keyword, causing compilation failures in ETL.
---------
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: Maksim Danilov <maksim.danilov@accenture.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 982adecca4e52281ea5289e6979a0760ea67ec77
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Fri Apr 3 16:55:18 2026 +0100
Added manually triggered clang-format action
# Conflicts:
# .github/workflows/clang-format_update.yaml
commit 2059c5b657e87b0a3e9ae47c3e1a7e8ff4dfca17
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Fri Apr 3 16:46:42 2026 +0100
Added manually triggered clang-format action
# Conflicts:
# .github/workflows/clang-format_update.yaml
commit bd6e55b12e350b87a41c4342d35779b6cf9aa92e
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Fri Apr 3 16:35:57 2026 +0100
Added manually triggered clang-format action
# Conflicts:
# .github/workflows/clang-format_update.yaml
commit 5a7674b6372a0ee33e2e7f73d68c395273ba2c35
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Fri Apr 3 16:35:57 2026 +0100
Added manually triggered clang-format action
# Conflicts:
# .github/workflows/clang-format_update.yaml
commit 2e74b07dffca347b9fd2c79eff3fc854686a3b47
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Fri Apr 3 16:35:57 2026 +0100
Added manually triggered clang-format action
commit f5128a39fe6c7696c0808a94110585315369c90f
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Fri Apr 3 13:58:19 2026 +0100
Attempt to fix syntax that comfuse clang-format
commit 01066b86ae8577c57dfcc816e3b0ad470571e3f9
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Fri Apr 3 10:45:54 2026 +0100
Attempt to fix syntax that comfuse clang-format
commit aeb8e4f73442bcd757e1680c16e8dcecd42b006e
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Thu Apr 2 14:11:45 2026 +0100
Formatted source files
commit c7571660bd0ea3abbd88d2e0355f3df5820d07b8
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Thu Apr 2 14:07:10 2026 +0100
Adjusted ColumnLimit to 150
commit 6a1585b3178021ff453f9067a08f7fafeea60406
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Thu Apr 2 12:28:16 2026 +0100
Improved include regex
commit 9fba468dc2970bbf25f874a3b93a11e13d3b3e01
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Thu Apr 2 11:33:44 2026 +0100
Removed ETL_DEPRECATED_REASON=[[deprecated(%0)]] from configuration
commit bd1def8b413288372127f28c9d7a773ceb78f62d
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Thu Apr 2 10:35:49 2026 +0100
Used the correct macro for 'if constexpr'
commit 27d284713a051c60b4457601bec9226083334040
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Thu Apr 2 09:25:06 2026 +0100
Updated .clang-format to include more ETL macros
commit 1405bf65ded081a3fa159f0db36b6ac772ab1810
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Thu Apr 2 08:26:17 2026 +0100
Updated .treefmt to exclude more files and directories
commit 09dd40d4dd91e5817e1f8769c99bcc90e265e3de
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Apr 1 22:43:04 2026 +0200
Fix .clang-format to recognize ETL macros as attributes
commit c536a39f0a10e826bc2fc4c4d8e73f56a00212b4
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Wed Apr 1 17:53:29 2026 +0200
Treefmt config
commit 9b394b8677c4765091af729a50a9e3ec1e5a97fa
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Wed Apr 1 17:34:15 2026 +0100
Added certain Hugo files and diectories to the Git ignore file
commit 9d2c73793d8467c459a0eb0152ee46df85d4849d
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Wed Apr 1 13:33:18 2026 +0100
Ran clang-format on generated files, using the .clang-format from PR #1314
commit 1ce3deb0f79f08ec7dc6b07ccc674aa293666b3f
Author: Benedek Kupper <kupper.benedek@gmail.com>
Date: Tue Mar 31 21:56:42 2026 +0200
test: delegate: add unary + to convert lambda to function pointer
commit ea397ec2ddc4b2e0f3e0aeb8b3244f1ae1ef748b
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Tue Mar 31 11:23:49 2026 +0100
Changed non-capturing lambda API to runtime function pointer API
commit a483eb90c470b25ea1e3f990e9fd97e448e1bdc6
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Tue Mar 31 19:11:02 2026 +0100
Fixed generator_test.py
Updated generator files in the VS2022 project
Adde licence headers to the generator headers
commit c970fa9bad1af14e8dacf86e5ac81daba189beca
Author: Diogo Cavaleiro <diogo.cavaleiro@ctw.bmwgroup.com>
Date: Wed Feb 25 11:48:06 2026 +0000
Add clang-format v18 workflow and configuration
commit d17c0297ec0202fcbd04fd3b4b7250f1df14abb3
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Tue Mar 31 17:36:54 2026 +0200
Factor out generated code (#1369)
Previously, generator code under include/etl/generators needed to be
synchronized with the generated files under include/etl explicitly.
Leading to errors in the CI checks if forgotten.
This change separates out the generated parts to cpp03 specific
snippets. This way, most code under include/etl is now directly editable,
with only some pre-C++11 code separated out to
include/etl/generators/*_cpp03_generator.h which still needs to be
re-generated on respective changes. But in many cases, this is not necessary.
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 3c2a4d48a9fa86bce603020b81dd152c122c874b
Author: William Sciaroni <wsciaroni@protonmail.com>
Date: Tue Mar 31 06:20:31 2026 -0500
Update Dockerfile and Devcontainer. (#1360)
* Print test names at test time (#1343)
* Remove python3-cogapp from Dockerfile
Removed python3-cogapp from the Dockerfile installation.
* Update .devcontainer/Dockerfile
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Change base image and update Python package installation
* Change container to use cpp devcontainer version 2
* Point to specific version of the devcontainer
* Update devcontainer to use debian snapshot for reproducability
* Fetch sources via https
* Make devcontainer more robust for debian_snapshot
* Make fetch non-https for snapshot
* Install CMake from apt
* Update devcontainers to remove CMake version
* Change Clang version from 22 to 21
* Apply suggestion from @rolandreichweinbmw
---------
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 3d564d68b9b849a4d334932d334fb8280ef3f0e6
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Mon Mar 30 19:34:15 2026 +0100
Fixed sign conversion in advance_helper
commit e4dfb6c045f0cb7176f3a01c5fe3f2c809d7f22a
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Mon Mar 30 19:06:07 2026 +0100
Fixed iterator.h #if #else #endif
Fixed type_lookup_generator to match genereted
commit 95c9cabc1002f0ec80b8aa97445ab2365dc2c5df
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Sat Mar 28 20:37:03 2026 +0000
Fix for PR 1367
commit 3638d89f8b99cde27b7c793c513d6f4da1ba45fd
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Sat Mar 28 13:50:27 2026 +0000
Fix for PR 1367
commit 03ca3c817ee17deb179a754af54a81a7f3d7cd0b
Author: John Wellbelove <john.wellbelove@etlcpp.com>
Date: Sat Mar 28 12:03:12 2026 +0000
Fix for PR 1367
commit b83cef566836b5e84463f50df9e14003fc71884c
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Sat Mar 28 12:15:56 2026 +0100
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
commit 2c2ce9a39f1bbe1d37948e97c8e4173a0c076442
Author: Bram Meijer <48760013+Brambovich@users.noreply.github.com>
Date: Sat Mar 28 10:16:00 2026 +0100
Add a inplace_function constructor from a nullptr (#1336)
* Add a inplace_function constructor with a nullptr argument
* Add unit test for nullptr construction
---------
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit f718c54396fe0446f0f483a89b3e35d33f691b4c
Author: Daniel Santos <Daniel.SB.Santos@ctw.bmwgroup.com>
Date: Fri Mar 27 10:17:56 2026 +0000
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>
commit 12cdbc0da02e84a94a66ead292f34093356d92ea
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Fri Mar 27 10:19:50 2026 +0100
Bug fixes in variant_variadic.h (#1358)
* Print test names at test time (#1343)
* Bug fixes in variant_variadic.h
---------
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit ab03ea114fa59bc9ace96e5f75063da0e1bd8be5
Author: Bram Meijer <48760013+Brambovich@users.noreply.github.com>
Date: Fri Mar 27 09:11:45 2026 +0100
Fix compilation issue when including etl/chrono next to etl/to_string. (#1365)
* Print test names at test time (#1343)
* Fix namespace issue of floor/round in to_string_helper
---------
Co-authored-by: Roland Reichwein <Roland.Reichwein@bmw.de>
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 2f242e37f219cb784ffc8ee3ef7da0f8784708c1
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Thu Mar 26 10:46:20 2026 +0100
Restrict etl::atomic for general types (#1359)
* Print test names at test time (#1343)
* Restrict etl::atomic for general types
Needs adding is_copy_assignable and is_move_assignable, and
adjustments to is_trivially_copyable and is_assignable
* Resolve mutable T value vs. volatile qualified methods
* Remove volatile method overloads
They are deprecated in C++20 because they don't work as users expect anyway.
MSVC hinted for this.
---------
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 31b87b541989bbd7da8e11c1cc0ce8f477115c8d
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Thu Mar 26 09:56:17 2026 +0100
Add C++ ranges library for C++17 (#1316)
* Add ranges
* Print test names at test time (#1343)
* Fix conflit commit errors
* Cast return value of operator* to value_type
Fixed warning on VS2022
---------
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit add42b6c875420882944d7e946dc22a1ecea9e25
Author: Roland Reichwein <Roland.Reichwein@bmw.de>
Date: Thu Mar 26 09:29:05 2026 +0100
Mark uninitialized use from std library (#1349)
* Print test names at test time (#1343)
* Mark uninitialized use from std library
Similar to other cases, adds compiler pragmas against warnings
caused by std library in optimized builds of tests
---------
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
commit 2f6a3e04aa8e043054f29502c5dcc52669f952cb
Author: Timon Zijnge <47081647+tzijnge@users.noreply.github.com>
Date: Thu Mar 26 08:56:50 2026 +0100
Manchester big endian support (#1353)
* manchester
* Added manchester code and test
* manchester
* Formatting and added missing file
* manchester
* Some functions can only be constexpr since C++14
* manchester
* Manchester decode and some refactoring
* manchester
* Added some missing typenames
* manchester
* constexpr void function not al…
We currently have 2 facilities for testing generators: Running generator.bat directly and checking the result, and generator_test.py. Only the first one was run in the CI checks, silently missing if the second one failed. Now adding the second one also to the workflow.