From 270317b20b79b9bf47797c9d52bac550fec50260 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Mon, 6 Apr 2026 15:14:09 +0200 Subject: [PATCH] Enable gcovr --exclude-unreachable-branches and --exclude-throw-branches flags --- build/Makefile.gcov | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/Makefile.gcov b/build/Makefile.gcov index 0ae5a44944d08..13985a93a101e 100644 --- a/build/Makefile.gcov +++ b/build/Makefile.gcov @@ -56,14 +56,14 @@ gcovr-html: @echo "Generating gcovr HTML" @rm -rf gcovr_html/ @mkdir gcovr_html - gcovr -sr . -o gcovr_html/index.html --html --html-details \ + gcovr -sr . -o gcovr_html/index.html --html --html-details --exclude-unreachable-branches --exclude-throw-branches \ $(foreach pattern, $(GCOVR_EXCLUDE_LINES_BY_PATTERNS), --exclude-lines-by-pattern $(pattern)) \ $(foreach lib, $(GCOVR_EXCLUDES), -e $(lib)) gcovr-xml: @echo "Generating gcovr XML" @rm -f gcovr.xml - gcovr -sr . -o gcovr.xml --xml \ + gcovr -sr . -o gcovr.xml --xml --exclude-unreachable-branches --exclude-throw-branches \ $(foreach pattern, $(GCOVR_EXCLUDE_LINES_BY_PATTERNS), --exclude-lines-by-pattern $(pattern)) \ $(foreach lib, $(GCOVR_EXCLUDES), -e $(lib))