From 9239285a34bcb72aed9f4628d43ecc40bab19ec2 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Mon, 31 Mar 2025 22:02:30 +0100 Subject: [PATCH] core: Add comments explaining reason of clang-format guards --- src/core/model/traced-value.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/core/model/traced-value.h b/src/core/model/traced-value.h index 0246b942a..9b423d3a6 100644 --- a/src/core/model/traced-value.h +++ b/src/core/model/traced-value.h @@ -502,6 +502,7 @@ operator>(const U& lhs, const TracedValue& rhs) * the underlying values. */ // clang-format off +// Clang-format guard needed for version 18 only template auto operator+(const TracedValue& lhs, const TracedValue& rhs) @@ -532,6 +533,7 @@ operator+(const U& lhs, const TracedValue& rhs) -> TracedValue&lhs,const TracedValue&rhs) */ // clang-format off +// Clang-format guard needed for version 18 only template auto operator-(const TracedValue& lhs, const TracedValue& rhs) @@ -562,6 +564,7 @@ operator-(const U& lhs, const TracedValue& rhs) -> TracedValue&lhs,const TracedValue&rhs) */ // clang-format off +// Clang-format guard needed for version 18 only template auto operator*(const TracedValue& lhs, const TracedValue& rhs) @@ -592,6 +595,7 @@ operator*(const U& lhs, const TracedValue& rhs) -> TracedValue&lhs,const TracedValue&rhs) */ // clang-format off +// Clang-format guard needed for version 18 only template auto operator/(const TracedValue& lhs, const TracedValue& rhs) @@ -622,6 +626,7 @@ operator/(const U& lhs, const TracedValue& rhs) -> TracedValue&lhs,const TracedValue&rhs) */ // clang-format off +// Clang-format guard needed for version 18 only template auto operator%(const TracedValue& lhs, const TracedValue& rhs) @@ -652,6 +657,7 @@ operator%(const U& lhs, const TracedValue& rhs) -> TracedValue&lhs,const TracedValue&rhs) */ // clang-format off +// Clang-format guard needed for version 18 only template auto operator^(const TracedValue& lhs, const TracedValue& rhs) @@ -682,6 +688,7 @@ operator^(const U& lhs, const TracedValue& rhs) -> TracedValue&lhs,const TracedValue&rhs) */ // clang-format off +// Clang-format guard needed for version 18 only template auto operator|(const TracedValue& lhs, const TracedValue& rhs) @@ -712,6 +719,7 @@ operator|(const U& lhs, const TracedValue& rhs) -> TracedValue&lhs,const TracedValue&rhs) */ // clang-format off +// Clang-format guard needed for version 18 only template auto operator&(const TracedValue& lhs, const TracedValue& rhs) @@ -742,6 +750,7 @@ operator&(const U& lhs, const TracedValue& rhs) -> TracedValue&lhs,const TracedValue&rhs) */ // clang-format off +// Clang-format guard needed for version 18 only template auto operator<<(const TracedValue& lhs, const TracedValue& rhs) @@ -772,6 +781,7 @@ operator<<(const U& lhs, const TracedValue& rhs) -> TracedValue&lhs,const TracedValue&rhs) */ // clang-format off +// Clang-format guard needed for version 18 only template auto operator>>(const TracedValue& lhs, const TracedValue& rhs)