Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 1 addition & 0 deletions doc/website/release-notes/iceoryx-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:**

Expand Down
14 changes: 7 additions & 7 deletions iceoryx_hoofs/time/include/iox/detail/duration.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
28 changes: 14 additions & 14 deletions iceoryx_hoofs/time/include/iox/duration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading