Various qualkit updates
See merge request eng/das/cov/gnatcoverage-qualification!36
The modifications include:
* TOR: Refinements over the expected execution environment
* TOR: remove index entry definitions
* PLANS: Remove duplicate revision history section
(cherry picked from commit 772afba72ae4014b866562d04b6f3fd8c5f8d5dd)
genbundle.py: Defer settings loading until after work dir has been setup
See merge request eng/das/cov/gnatcoverage-qualification!35
(cherry picked from commit 6b7a34d411eadf998cdcabcac0da8bd1baaa1e49)
Qualkit: Add document id in the filename for each of the documents
See merge request eng/das/cov/gnatcoverage-qualification!33
(cherry picked from commit 337879aca842aa309033986bf51366b63546f997)
Make `gnatcov instrument` refrain from instrumenting Ada source files
that GPRbuild would not compile when given the same project options. For
instance, do not instrument source files that belong to the root project
but which are not in the closure of GPR mains.
Adapt relevant existing testcases to accomodate this new behavior: this
makes source instrumentation behave mor like coverage with binary
traces.
Depending on the processing order for SID files, the "discarding source
coverage data" warning may refer to `bar.c`/`foo.c.sid` or
`foo.c`/`bar.c.sid`. Make warnings matching more robust to handle both
cases.
Upcoming changes will make gnatcov instrument exactly the set of sources
that get compiled by gprbuild. To avoid "warning: no SID file found for
unit X" messages from "gnatcov coverage" on tests for which this this is
an accident rather than on purpose, adjust projects so that all units
get compiled/instrumented.
Fix the statement instrumentation of expression functions in Ada 2022
mode so that the sloc of the resulting SCO statement is identical to
what we get for pre-2022 code: the parens around the expression must not
be included.
This fixes 213-sarif-report test failures with `--cargs:Ada=-gnat22`.
Adapt sources to be compatible with Ada 95, or when this is not
possible, force the language version inside the test itself (with an
overriding `-gnatXX` argument or with language version pragmas).
Current, we never instrument calls when a qualified expr is needed to
wrap the inserted if expression: remove preliminary code that was
introduced to handle this case (it's never used and we always emit a
warning saying we could not instrument instead).