From 91573ebddf2d095b4c82615fd4b90ec61e44ede1 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Thu, 30 Jun 2022 11:56:13 +0200 Subject: [PATCH] Enable more clang-tidy checks --- unit_tests/partitioner/bisection_to_partition.cpp | 2 +- unit_tests/partitioner/remove_unconnected.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unit_tests/partitioner/bisection_to_partition.cpp b/unit_tests/partitioner/bisection_to_partition.cpp index 28cd8aac7..cbc5a3261 100644 --- a/unit_tests/partitioner/bisection_to_partition.cpp +++ b/unit_tests/partitioner/bisection_to_partition.cpp @@ -3,7 +3,7 @@ #include "partitioner/bisection_to_partition.hpp" -#define CHECK_SIZE_RANGE(range, ref) BOOST_CHECK_EQUAL(range.end() - range.begin(), ref) +#define CHECK_SIZE_RANGE(range, ref) BOOST_CHECK_EQUAL((range).end() - (range).begin(), ref) #define CHECK_EQUAL_RANGE(range, ref) \ do \ { \ diff --git a/unit_tests/partitioner/remove_unconnected.cpp b/unit_tests/partitioner/remove_unconnected.cpp index b6fd17d40..11d89b19a 100644 --- a/unit_tests/partitioner/remove_unconnected.cpp +++ b/unit_tests/partitioner/remove_unconnected.cpp @@ -5,7 +5,7 @@ #include "util/static_graph.hpp" -#define CHECK_SIZE_RANGE(range, ref) BOOST_CHECK_EQUAL(range.end() - range.begin(), ref) +#define CHECK_SIZE_RANGE(range, ref) BOOST_CHECK_EQUAL((range).end() - (range).begin(), ref) #define CHECK_EQUAL_RANGE(range, ref) \ do \ { \