From 3f95ac68a1d7cf764f58e360ae9b4c43e5913095 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Wed, 30 Aug 2023 03:36:46 +0200 Subject: Clang tidy CI test: add more readability checks to clang tidy CI test (#4146) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add more readability checks to clang-tidy CI test * reformat check list * starting to address issues found with clang-tidy£ * addressing issues * remove check * address issues * address all issues * address issue found with github code scanning --- Source/Utils/Parser/IntervalsParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Utils/Parser/IntervalsParser.cpp') diff --git a/Source/Utils/Parser/IntervalsParser.cpp b/Source/Utils/Parser/IntervalsParser.cpp index dd72ba900..35d13143d 100644 --- a/Source/Utils/Parser/IntervalsParser.cpp +++ b/Source/Utils/Parser/IntervalsParser.cpp @@ -166,7 +166,7 @@ utils::parser::BTDIntervalsParser::BTDIntervalsParser ( { const bool isBTD = true; const SliceParser temp_slice(inslc, isBTD); - if (m_slices.size() > 0) + if (!m_slices.empty()) { // find the last index i_slice where // the start value of m_slices[i_slice] is greater than temp_slices' start_value @@ -199,7 +199,7 @@ utils::parser::BTDIntervalsParser::BTDIntervalsParser ( // // for Slice temp_slice in m_slices, // determine the largest index in m_btd_iterations smaller than start - if (m_btd_iterations.size() == 0) + if (m_btd_iterations.empty()) { btd_iter_ind = 0; } -- cgit v1.2.3