From 94bc57213f9a8a74e9e7520de68d7bba7f42ea4c Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Thu, 19 Dec 2019 17:51:21 +0100 Subject: configure: Add switch for clang's "source-based" code coverage feature This adds instrumentation to the binaries. At the end of their execution, these will then write a file containing information which code was executed. This can be used for code coverage analysis. [ChangeLog][QtCore][configure] Add switch "-coverage source-based" to enable clang's "source-based" code coverage feature. This can be used for code coverage analysis. Change-Id: If31c6849aa797ff8820e041e85a492a14e2f1a6b Reviewed-by: Leena Miettinen Reviewed-by: Fabian Kosmale Reviewed-by: Alexandru Croitor --- config_help.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config_help.txt') diff --git a/config_help.txt b/config_help.txt index 5cba7316b1..ee176c0451 100644 --- a/config_help.txt +++ b/config_help.txt @@ -137,8 +137,10 @@ Build options: for example, -sanitize address cannot be combined with -sanitize thread. - -coverage {trace-pc-guard} - Add code coverage instrumentation (Clang only) + -coverage {trace-pc-guard|source-based} + Specify the 'trace-pc-guard' coverage instrumentation for + sanitizers or generate instrumented code to collect execution + counts and enable code coverage analysis, respectively. (Clang only) -c++std .... Select C++ standard [c++2a/c++17/c++14/c++11] (Not supported with MSVC 2015) -- cgit v1.2.3