File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,23 @@ and then executing::
203203
204204 gnatcov <command> --units=@units.list
205205
206+ Conveying *subprograms * of interest
207+ *********************************
208+
209+ |gcv | enables even finer grain control through the use of ``--subprograms ``
210+ switch, which restricts coverage analysis to the specified list of subprograms
211+ of interest.
212+
213+ The ``--subprograms `` switch expects a ``<full_filename>:<line> `` argument,
214+ where ``<full_filename> `` is the full path to the subprogram source, and
215+ ``line `` is the specification line for Ada subprograms, and the body line for
216+ C/C++ functions.
217+
218+ Every coverage obligation from non subprograms of interest is discarded and
219+ reported as *no code * in the various output formats, and the associated coverage
220+ data is ignored. This means that checkpoints will hold coverage data for
221+ subprograms of interest only.
222+
206223.. _gpr_context :
207224
208225Other switches or attributes of importance
You can’t perform that action at this time.
0 commit comments