@@ -205,22 +205,27 @@ and then executing::
205
205
206
206
Conveying *subprograms * of interest (experimental)
207
207
**************************************************
208
- >>>>>>> 9544dc8f5 (Mark the --subprograms switch as experimental)
209
208
210
209
|gcv | enables even finer grain control through the use of ``--subprograms ``
211
210
switch, which restricts coverage analysis to the specified list of subprograms
212
211
of interest.
213
212
214
- The ``--subprograms `` switch expects a ``<full_filename>:<line> `` argument,
215
- where ``<full_filename> `` is the full path to the subprogram source, and
216
- ``line `` is the specification line for Ada subprograms, and the body line for
217
- C/C++ functions.
213
+ The ``--subprograms `` switch expects a ``<filename>:<line> `` argument, where
214
+ ``<filename> `` is a source file name path, absolute or relative to the current
215
+ directory, pointing to the subprogram source and ``line `` is the first line of
216
+ the subprogram specification in Ada, and the first line of the function
217
+ definition in C/C++.
218
218
219
219
Every coverage obligation from non subprograms of interest is discarded and
220
220
reported as *no code * in the various output formats, and the associated coverage
221
221
data is ignored. This means that checkpoints will hold coverage data for
222
222
subprograms of interest only.
223
223
224
+ The ``--subprograms `` switch acts only on subprograms within units of interest.
225
+ If a unit was ignored for coverage analysis through a project attribute (e.g.
226
+ ``Excluded_Units ``) or through a command line switch (e.g. ``--units ``), the
227
+ designated subprogram will be ignored for coverage analysis as well.
228
+
224
229
.. _gpr_context :
225
230
226
231
Other switches or attributes of importance
0 commit comments