From af799513aad72bacc0330977ff45fa51408e9231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 17 Apr 2026 01:08:48 +0200 Subject: [PATCH] Fix misleading indentation --- .../experimental/segmented_equal.hpp | 28 ++++++++++++++----- .../experimental/segmented_mismatch.hpp | 28 ++++++++++++++----- 2 files changed, 42 insertions(+), 14 deletions(-) diff --git a/include/boost/container/experimental/segmented_equal.hpp b/include/boost/container/experimental/segmented_equal.hpp index d7821a5..f8ba540 100644 --- a/include/boost/container/experimental/segmented_equal.hpp +++ b/include/boost/container/experimental/segmented_equal.hpp @@ -63,22 +63,36 @@ segduo segmented_equal_iter2_bounded difference_type n = last1 - first1; while(n >= difference_type(4)) { - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; n -= 4; } switch(n) { case 3: - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; BOOST_FALLTHROUGH; case 2: - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; BOOST_FALLTHROUGH; case 1: - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; BOOST_FALLTHROUGH; default: break; diff --git a/include/boost/container/experimental/segmented_mismatch.hpp b/include/boost/container/experimental/segmented_mismatch.hpp index 1a5eb43..8de1928 100644 --- a/include/boost/container/experimental/segmented_mismatch.hpp +++ b/include/boost/container/experimental/segmented_mismatch.hpp @@ -67,22 +67,36 @@ segduo segmented_mismatch_iter2_bounded difference_type n = last1 - first1; while(n >= difference_type(4)) { - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; n -= 4; } switch(n) { case 3: - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; BOOST_FALLTHROUGH; case 2: - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; BOOST_FALLTHROUGH; case 1: - if(first2 == iter2_last) goto out_path; if(!pred(*first1, *first2)) goto out_path; ++first1; ++first2; + if(first2 == iter2_last) goto out_path; + if(!pred(*first1, *first2)) goto out_path; + ++first1; ++first2; BOOST_FALLTHROUGH; default: break;