Lines Matching full:coverage
2 Source-based Code Coverage
11 This document explains how to use clang's source-based code coverage feature.
13 information directly. This allows it to generate very precise coverage data.
15 Clang ships two other code coverage implementations:
18 various sanitizers. It can provide up to edge-level coverage.
20 * gcov - A GCC-compatible coverage implementation which operates on DebugInfo.
22 From this point onwards "code coverage" will refer to the source-based kind.
24 The code coverage workflow
27 The code coverage workflow consists of three main steps:
29 * Compiling with coverage enabled.
33 * Creating coverage reports.
52 Compiling with coverage enabled
55 To compile code with coverage enabled, pass ``-fprofile-instr-generate
60 # Step 1: Compile with coverage enabled.
63 Note that linking together code with and without coverage instrumentation is
94 Creating coverage reports
98 coverage reports. This is done using the "merge" tool in ``llvm-profdata``, so
106 There are multiple different ways to render coverage reports. One option is to
111 # Step 3(b): Create a line-oriented coverage report.
148 It's possible to generate a file-level summary of coverage statistics (instead
153 # Step 3(c): Create a coverage summary.
192 * There is a third format in play: the format of the coverage mappings emitted
224 * Code coverage does not handle unpredictable changes in control flow or stack
236 coverage tool may mark the ``return`` statement as executed even though it is