... to reflect the version currently used at AdaCore. It seems that
newer versions of flake8 reject missing spaces after the "not" keyword.
Fix occurences in the codebase.
TN: W310-006
(cherry picked from commit 4250bdca54)
Since the analysis context initialization may trigger events (e.g.
"prelude file parsed"), language bindings (in particular Python) may
need to create/register their wrapper around the context that is just
created so that they can use that wrapper when invoking the callback.
Having allocation and initialization as a single atomic step makes this
impossible: this change splits them in the C API and update the
Python/OCaml bindings to allow this.
TN: VA12-016
(cherry picked from commit 0b029ac1b0)
Upcoming work will start to use command line arguments in a "main.py"
test script. Fix "path_wrapper.py" so that command line arguments are
correctly passed to "main.py".
TN: VA12-016
(cherry picked from commit 869141de11)
Even though Get_From_Buffer forces the parsing of the requested unit,
the Unit_Requested_Callback event must pass False to its Reparse
argument when that forced parsing happens for the analysis unit creation
(first parsing).
TN: VA12-016
(cherry picked from commit 641d49088e)
Upcoming work for this ticket will bind the event_handler API to C and
Python. Make it clear that this testcase checks the Ada API, since we
will create new tests specifically for C and Python.
TN: VA12-016
(cherry picked from commit c1b581cf3c)
In order to avoid GPR warnings ("no C sources for this project") for all
projects that contain only Ada sources, make the C language optional in
generated project files.
TN: VA14-036
(cherry picked from commit 558f53748f)
Printing the int value for the exception IDs makes test outputs
unstable, as IDs can change when new exceptions are added. Add an
exception name getter to restore stable output.
TN: VA14-036
(cherry picked from commit 3a838da876)
The routine for grouping lexical envs would previously always flatten grouped
envs. However, this process would discard the `default_md` field of the nested
grouped envs.
The implementation now decides to flatten grouped envs only if the resulting
env behavior is the same.