6208 Commits

Author SHA1 Message Date
John Wellbelove
3f81df564e Added author and date 2026-06-01 10:00:01 +01:00
John Wellbelove
7f05fa800c
Merge branch 'development' into issue/Add-Hugo-support-for-documentation 2026-05-31 19:33:31 +01:00
Roland Reichwein
8a782cc7f1
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.
2026-05-31 19:32:38 +01:00
Sergei
e3fad3c908
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>
2026-05-31 09:49:55 +01:00
John Wellbelove
9fbe7f99be Minor renaming 2026-05-30 08:32:29 +01:00
John Wellbelove
75f98a82c7 Renamed two files to lower case 2026-05-30 08:28:14 +01:00
Roland Reichwein
43c0c4ae71 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
2026-05-30 08:22:47 +01:00
John Wellbelove
f6ad307832 Fixed 'Description' typo 2026-05-30 08:00:44 +01:00
John Wellbelove
05cf9c55f1 Added author and date to blog files
Moved documentation files merged from development
2026-05-28 18:31:13 +01:00
John Wellbelove
f61fc460bb Fix spelling 2026-05-28 17:50:45 +01:00
John Wellbelove
8f97937049 Renamed directory 2026-05-28 15:06:10 +01:00
John Wellbelove
6b87dc1f10 Merge branch 'development' into issue/Add-Hugo-support-for-documentation 2026-05-28 14:33:02 +01:00
John Wellbelove
b8c5990585 Updates to message framework documentation 2026-05-28 14:27:15 +01:00
John Wellbelove
28b3a0f38c Final pre PR updates 2026-05-28 12:39:15 +01:00
John Wellbelove
a4e140f932 Updates before PR
# Conflicts:
#	docs/blog/_index.md
2026-05-26 11:07:42 +01:00
John Wellbelove
e62054f6aa Updates before PR 2026-05-26 10:21:03 +01:00
John Wellbelove
bc0b3005cf Updates before PR 2026-05-26 10:19:37 +01:00
Roland Reichwein
af3944acdb
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.
2026-05-26 09:11:24 +01:00
John Wellbelove
06c61c9939 Final conversion of web pages 2026-05-26 09:08:39 +01:00
Roland Reichwein
9765cbf764
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.
2026-05-26 04:19:42 +01:00
Roland Reichwein
41174ed7f6
Add missing constexpr to intrusive_links.h constructors (#1446) 2026-05-26 04:18:27 +01:00
SamHalvoe
6bb9841dae
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>
2026-05-25 20:47:34 +01:00
John Wellbelove
bf0e620bfb Multiple document updates 2026-05-21 18:39:06 +01:00
John Wellbelove
003e5f3c86 Multiple document updates 2026-05-19 12:12:14 +01:00
John Wellbelove
78be6f298e New documentation files. 2026-05-18 11:10:40 +01:00
Roland Reichwein
652034603b
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>
2026-05-18 08:01:17 +01:00
John Wellbelove
b09bb9448e New documentation files.
Harmonised file name format
2026-05-18 07:57:12 +01:00
Roland Reichwein
373247e5c1
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.
2026-05-18 07:14:26 +01:00
John Wellbelove
06ccda00f6 More documentation updates 2026-05-14 00:05:35 +01:00
Roland Reichwein
eba472fa3a
Simplify and fix test/run-syntax-checks.sh (#1432) 2026-05-12 20:02:32 +01:00
John Wellbelove
0d709324bd More documentation updates 2026-05-12 11:07:03 +01:00
John Wellbelove
d69acc57b8 More documentation updates 2026-05-11 13:21:35 +01:00
Roland Reichwein
57d3867694
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>
2026-05-09 09:29:18 +01:00
Sergei
f6f145c5e5
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>
2026-05-08 09:33:21 +01:00
John Wellbelove
6fdfee41de Added callback_timer_locked documentation 2026-05-07 11:11:08 +01:00
John Wellbelove
5bff419ccf Added callback_timer_deferred_locked documentation 2026-05-06 18:31:28 +01:00
Roland Reichwein
079b3345d9
Various bugfixes (#1428)
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-05-06 18:26:10 +01:00
Roland Reichwein
c9198d089c
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
2026-05-06 10:16:20 +01:00
Roland Reichwein
a5d279d5e4
Fix sanitizer use (#1429)
* Fix sanitizer use

A case issue prevented adding sanitizer in the tests.

* Fix compiler warnings from actual sanitizer use
2026-05-06 10:13:02 +01:00
Roland Reichwein
fe17d32e9b
Fix meson build (#1431)
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-05-06 10:10:14 +01:00
Roland Reichwein
e8206cca83
Remove unnecessary includes (#1434)
Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-05-06 09:10:10 +01:00
John Wellbelove
fdfd17a1c2 Added missing format and print headers from VS2022 project 2026-05-06 08:00:49 +01:00
John Wellbelove
e1c8a5db11 Added more documentation
Tweaks to CSS
2026-05-06 07:59:33 +01:00
Roland Reichwein
4f411c66a9
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.
2026-05-03 22:49:02 +02:00
Roland Reichwein
b9b36d8155
Add bazel support (#1420)
* Add bazel support

* Add github workflow for bazel
2026-04-30 12:30:01 +02:00
Roland Reichwein
a2e274bbc5
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.
2026-04-30 12:27:12 +02:00
Roland Reichwein
d1fe2938e1
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>
2026-04-29 10:11:02 +02:00
Roland Reichwein
a1cd6a5569
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>
2026-04-29 09:33:56 +02:00
Roland Reichwein
943e8e6089
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>
2026-04-28 15:35:21 +02:00
Joris Putcuyps
15ca12649e
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>
2026-04-28 14:13:55 +02:00