From b2b15edf6a88b974ab5332c05daefdb60b2b3d22 Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Thu, 25 Jun 2026 14:56:31 +0200 Subject: [PATCH 1/3] iox-#2532 Fix whitespace in literal operation declaration warning --- .../release-notes/iceoryx-unreleased.md | 1 + .../time/include/iox/detail/duration.inl | 14 +++++----- iceoryx_hoofs/time/include/iox/duration.hpp | 28 +++++++++---------- 3 files changed, 22 insertions(+), 21 deletions(-) diff --git a/doc/website/release-notes/iceoryx-unreleased.md b/doc/website/release-notes/iceoryx-unreleased.md index d4049b0756..2044c85943 100644 --- a/doc/website/release-notes/iceoryx-unreleased.md +++ b/doc/website/release-notes/iceoryx-unreleased.md @@ -165,6 +165,7 @@ - Fix documentation of `expected` [#2492](https://github.com/eclipse-iceoryx/iceoryx/issues/2492) - Fix alignment of the `variant` alternatives [#2516](https://github.com/eclipse-iceoryx/iceoryx/issues/2516) - Fix global-buffer-overflow in `VersionInfo::getCurrentVersion` under ASan when built from release tarball [#2526](https://github.com/eclipse-iceoryx/iceoryx/issues/2526) +- Fix whitespace in literal operation declaration warning [#2532](https://github.com/eclipse-iceoryx/iceoryx/issues/2532) **Refactoring:** diff --git a/iceoryx_hoofs/time/include/iox/detail/duration.inl b/iceoryx_hoofs/time/include/iox/detail/duration.inl index 83d69752b3..c13e1a8be8 100644 --- a/iceoryx_hoofs/time/include/iox/detail/duration.inl +++ b/iceoryx_hoofs/time/include/iox/detail/duration.inl @@ -528,43 +528,43 @@ constexpr bool operator>=(const Duration& lhs, const Duration& rhs) noexcept namespace duration_literals { // AXIVION Next Construct AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -inline constexpr Duration operator"" _ns(unsigned long long int value) noexcept +inline constexpr Duration operator""_ns(unsigned long long int value) noexcept { return Duration::fromNanoseconds(value); } // AXIVION Next Construct AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -inline constexpr Duration operator"" _us(unsigned long long int value) noexcept +inline constexpr Duration operator""_us(unsigned long long int value) noexcept { return Duration::fromMicroseconds(value); } // AXIVION Next Construct AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -inline constexpr Duration operator"" _ms(unsigned long long int value) noexcept +inline constexpr Duration operator""_ms(unsigned long long int value) noexcept { return Duration::fromMilliseconds(value); } // AXIVION Next Construct AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -inline constexpr Duration operator"" _s(unsigned long long int value) noexcept +inline constexpr Duration operator""_s(unsigned long long int value) noexcept { return Duration::fromSeconds(value); } // AXIVION Next Construct AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -inline constexpr Duration operator"" _m(unsigned long long int value) noexcept +inline constexpr Duration operator""_m(unsigned long long int value) noexcept { return Duration::fromMinutes(value); } // AXIVION Next Construct AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -inline constexpr Duration operator"" _h(unsigned long long int value) noexcept +inline constexpr Duration operator""_h(unsigned long long int value) noexcept { return Duration::fromHours(value); } // AXIVION Next Construct AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -inline constexpr Duration operator"" _d(unsigned long long int value) noexcept +inline constexpr Duration operator""_d(unsigned long long int value) noexcept { return Duration::fromDays(value); } diff --git a/iceoryx_hoofs/time/include/iox/duration.hpp b/iceoryx_hoofs/time/include/iox/duration.hpp index 66fd4abada..729f638bc8 100644 --- a/iceoryx_hoofs/time/include/iox/duration.hpp +++ b/iceoryx_hoofs/time/include/iox/duration.hpp @@ -41,31 +41,31 @@ namespace duration_literals { /// @brief Constructs a new Duration object from nanoseconds // AXIVION Next Line AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -constexpr Duration operator"" _ns(unsigned long long int value) noexcept; +constexpr Duration operator""_ns(unsigned long long int value) noexcept; /// @brief Constructs a new Duration object from microseconds // AXIVION Next Line AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -constexpr Duration operator"" _us(unsigned long long int value) noexcept; +constexpr Duration operator""_us(unsigned long long int value) noexcept; /// @brief Constructs a new Duration object from milliseconds // AXIVION Next Line AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -constexpr Duration operator"" _ms(unsigned long long int value) noexcept; +constexpr Duration operator""_ms(unsigned long long int value) noexcept; /// @brief Constructs a new Duration object from seconds // AXIVION Next Line AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -constexpr Duration operator"" _s(unsigned long long int value) noexcept; +constexpr Duration operator""_s(unsigned long long int value) noexcept; /// @brief Constructs a new Duration object from minutes // AXIVION Next Line AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -constexpr Duration operator"" _m(unsigned long long int value) noexcept; +constexpr Duration operator""_m(unsigned long long int value) noexcept; /// @brief Constructs a new Duration object from hours // AXIVION Next Line AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -constexpr Duration operator"" _h(unsigned long long int value) noexcept; +constexpr Duration operator""_h(unsigned long long int value) noexcept; /// @brief Constructs a new Duration object from days // AXIVION Next Line AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard -constexpr Duration operator"" _d(unsigned long long int value) noexcept; +constexpr Duration operator""_d(unsigned long long int value) noexcept; } // namespace duration_literals /// @code @@ -279,13 +279,13 @@ class Duration // END CONVERSION // AXIVION DISABLE STYLE AutosarC++19_03-A3.9.1 : Use of unsigned long long int in user-defined literals is enforced by the standard - friend constexpr Duration duration_literals::operator"" _ns(unsigned long long int value) noexcept; - friend constexpr Duration duration_literals::operator"" _us(unsigned long long int value) noexcept; - friend constexpr Duration duration_literals::operator"" _ms(unsigned long long int value) noexcept; - friend constexpr Duration duration_literals::operator"" _s(unsigned long long int value) noexcept; - friend constexpr Duration duration_literals::operator"" _m(unsigned long long int value) noexcept; - friend constexpr Duration duration_literals::operator"" _h(unsigned long long int value) noexcept; - friend constexpr Duration duration_literals::operator"" _d(unsigned long long int value) noexcept; + friend constexpr Duration duration_literals::operator""_ns(unsigned long long int value) noexcept; + friend constexpr Duration duration_literals::operator""_us(unsigned long long int value) noexcept; + friend constexpr Duration duration_literals::operator""_ms(unsigned long long int value) noexcept; + friend constexpr Duration duration_literals::operator""_s(unsigned long long int value) noexcept; + friend constexpr Duration duration_literals::operator""_m(unsigned long long int value) noexcept; + friend constexpr Duration duration_literals::operator""_h(unsigned long long int value) noexcept; + friend constexpr Duration duration_literals::operator""_d(unsigned long long int value) noexcept; // AXIVION ENABLE STYLE AutosarC++19_03-A3.9.1 // AXIVION Next Construct AutosarC++19_03-A8.4.7 : Argument is larger than two words From 2b65ad9f044b24058b5e3f4ae56cc461c2c7c842 Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Thu, 25 Jun 2026 16:27:00 +0200 Subject: [PATCH 2/3] iox-#2532 Add asciinema links to lycheeignore --- .lycheeignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.lycheeignore b/.lycheeignore index 82e0551af6..9ae5675f8d 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -5,5 +5,6 @@ https://www.gnu.org/software/screen/ https://www.etas.com/ https://medium.com/@pjbgf/title-testing-code-ocd-and-the-aaa-pattern-df453975ab80 https://en.cppreference.com/ +https://asciinema.org/* iceoryx-dev@eclipse.org From 6b159af05b2d63acd38a0226765249d18740b57f Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Thu, 25 Jun 2026 16:38:36 +0200 Subject: [PATCH 3/3] iox-#2532 Remove outdated cirrus-ci badge --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 1b1896c2db..36b2bc065f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ [![Build & Test](https://github.com/eclipse-iceoryx/iceoryx/workflows/Build%20&%20Test/badge.svg)](https://github.com/eclipse-iceoryx/iceoryx/actions/workflows/build-test.yml?query=branch%3Amain++) -[![Cirrus CI](https://img.shields.io/cirrus/github/eclipse-iceoryx/iceoryx/main?label=Cirrus%20CI)](https://cirrus-ci.com/github/eclipse-iceoryx/iceoryx/main) [![Gitter](https://badges.gitter.im/eclipse-iceoryx/iceoryx.svg)](https://gitter.im/eclipse/iceoryx) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![Codecov](https://codecov.io/gh/eclipse-iceoryx/iceoryx/branch/main/graph/badge.svg?branch=main)](https://codecov.io/gh/eclipse-iceoryx/iceoryx?branch=main)