From 00f1afc66e47a49f66e7b495d33d9d3c16a7a8f3 Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Mon, 24 Feb 2025 16:55:18 +0100 Subject: [PATCH] [MISC] Update seqan::hibf::unreachable --- .github/workflows/ci_coverage.yml | 4 ++-- cmake/package-lock.cmake | 2 +- include/raptor/prepare/cutoff.hpp | 4 +++- src/threshold/threshold.cpp | 4 ++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci_coverage.yml b/.github/workflows/ci_coverage.yml index 136fd841..abb886eb 100644 --- a/.github/workflows/ci_coverage.yml +++ b/.github/workflows/ci_coverage.yml @@ -85,7 +85,7 @@ jobs: --exclude ${GITHUB_WORKSPACE}/include/raptor/update \ --exclude ${GITHUB_WORKSPACE}/src/argument_parsing/update_parsing.cpp \ --exclude ${GITHUB_WORKSPACE}/src/update \ - --exclude-lines-by-pattern '^\s*}|^\s*};|^\s*HIBF_UNREACHABLE;|^\s*\.[^\s]+ = \".*\"' \ + --exclude-lines-by-pattern '^\s*}|^\s*};|.*seqan::hibf::unreachable.*|^\s*\.[^\s]+ = \".*\"' \ --exclude-noncode-lines \ --exclude-throw-branches \ --exclude-unreachable-branches \ @@ -114,7 +114,7 @@ jobs: --filter ${GITHUB_WORKSPACE}/include/raptor/update \ --filter ${GITHUB_WORKSPACE}/src/argument_parsing/update_parsing.cpp \ --filter ${GITHUB_WORKSPACE}/src/update \ - --exclude-lines-by-pattern '^\s*}|^\s*};|^\s*HIBF_UNREACHABLE;|^\s*\.[^\s]+ = \".*\"' \ + --exclude-lines-by-pattern '^\s*}|^\s*};|.*seqan::hibf::unreachable.*|^\s*\.[^\s]+ = \".*\"' \ --exclude-noncode-lines \ --exclude-throw-branches \ --exclude-unreachable-branches \ diff --git a/cmake/package-lock.cmake b/cmake/package-lock.cmake index b1ebe213..c620356b 100644 --- a/cmake/package-lock.cmake +++ b/cmake/package-lock.cmake @@ -6,7 +6,7 @@ # This file should be committed to version control # hibf -set (RAPTOR_HIBF_VERSION 0a74685fdfbe5e0ed7c8323ac3345546768706ea) +set (RAPTOR_HIBF_VERSION f4a1a089635da08dbb0391ab26dbe403ad334dd7) CPMDeclarePackage (hibf NAME hibf GIT_TAG ${RAPTOR_HIBF_VERSION} # main diff --git a/include/raptor/prepare/cutoff.hpp b/include/raptor/prepare/cutoff.hpp index fbe227b8..e144f1dd 100644 --- a/include/raptor/prepare/cutoff.hpp +++ b/include/raptor/prepare/cutoff.hpp @@ -11,6 +11,8 @@ #include +#include + #include namespace raptor @@ -47,7 +49,7 @@ class cutoff case cutoff_kinds::fixed: return fixed_cutoff; default: // GCOVR_EXCL_LINE - HIBF_UNREACHABLE; + seqan::hibf::unreachable(); } } diff --git a/src/threshold/threshold.cpp b/src/threshold/threshold.cpp index 39437d08..c687ad77 100644 --- a/src/threshold/threshold.cpp +++ b/src/threshold/threshold.cpp @@ -7,7 +7,7 @@ * \author Enrico Seiler */ -#include +#include #include @@ -57,7 +57,7 @@ size_t threshold::get(size_t const minimiser_count) const noexcept return std::max(1u, precomp_thresholds[index] + precomp_correction[index]); } default: // GCOVR_EXCL_LINE - HIBF_UNREACHABLE; + seqan::hibf::unreachable(); } }