17 Commits

Author SHA1 Message Date
Romain Beguet
faa8012473 Make has_spark_mode_on and is_subject_to_proof available on any node.
This also modifies the previous implementation by always propagating the
`include_skip_proof_annotations` flag, whereas previously some of the
internal properties would "forget" about it, for example the one on
DeclarativePart.

However it seems necessary to propagate the flag to correctly handle
`is_subject_to_proof` on local declarative parts nested in a subprogram
annotated with Skip_Proof.
2024-03-25 11:28:20 +01:00
Pierre-Marie de Rodat
557c40509b Libadalang.Project_Provider: add analysis context constructors
This commit introduces two functions (one for GNATCOLL.Projects, one for
GPR2) to build an analysis context object so that the unit provider,
preprocessing setup, configuration pragmas and the default charset are
automatically inferred from the project file.
2023-07-28 14:51:57 +00:00
Pierre-Marie de Rodat
16295cef2c Tests: ignore parsing errors with inline playground when necessary
Some tests mean to trigger a parsing error in Ada sources. For them,
disable the printing of parsing errors in the inline playground to avoid
polluting baselines.
2023-07-25 19:03:33 +00:00
Pierre-Marie de Rodat
12ebf7dff6 stylechecks: check testsuite sources
Also fix existing style issues there.
2023-04-24 12:42:09 +00:00
Oliver Kellogg
49ea9699a5 Fix a few typos in documentation
Ref: https://github.com/AdaCore/libadalang/pull/951
2023-01-03 09:03:25 +00:00
Charles Pigott
9997fffc38 Add way of specifying libadalang build mode for tests
For https://github.com/AdaCore/libadalang/issues/955
2022-12-14 10:30:22 +01:00
Pierre-Marie de Rodat
2866bbcbf9 Update after a recent Python API refactoring in Langkit
For eng/libadalang/langkit#639
2022-11-15 11:52:54 +00:00
Laurent Thévenoux
fae7a4fe7f Add --charset argument to inline_playground.py
Adding --charset allows the inline_playground driver to change the
default charset of the analyzed sources.
2022-06-15 13:58:54 +00:00
Pierre-Marie de Rodat
a474239291 Inline playground: introduce variable assignments
Add support for "--% X = ..." to avoid repeating subexpressions in
several commands, or to break a big expressions into several parts. In
Take this opportunity to rewrite intensive use of indexing to browse the
parsing tree (which made it hard to review tests).

For GitLab issue #925
2022-05-20 08:40:31 +00:00
Pierre-Marie de Rodat
d8f9aeed45 Inline playground: rework the output formatting
Remove trailing empty lines and group expressions for the same node
in sections.

In the course of GitLab issue #925
2022-05-20 08:39:58 +00:00
Pierre-Marie de Rodat
09c282a4ad Inline playground: get rid of '$' prefixes
This prefix serves no purpose and is not used consistently, so just
remove it and adapt the testcases accordingly.

In the course of GitLab issue #925
2022-05-20 08:36:04 +00:00
Laurent Thévenoux
b817e531df Make inline-playground output more readable
Format lists to have one item per line.

Ref: #914
2022-03-29 16:21:36 +02:00
Pierre-Marie de Rodat
92a13e6c29 Workaround a GPRbuild for testsuite runs with a dev setup
TN: UA21-007
2021-10-21 17:14:15 +02:00
Pierre-Marie de Rodat
147293a98f Testsuite: use "ascii" for non-ASCII test outputs
On Windows, the default encoding (not UTF-8) may not allow non-ASCII
test outputs. Use Python's "ascii" builtin where needed to ensure pure
ASCII test outputs.

TN: U720-016
2021-09-27 14:57:26 +02:00
Pierre-Marie de Rodat
a2295945d5 Python bindings: remove support for Python2
TN: U720-016
2021-09-24 15:54:39 +02:00
Pierre-Marie de Rodat
df161131f5 misc/copyright: new testcase
TN: U729-012
2021-08-02 13:52:44 +02:00
Pierre-Marie de Rodat
4382a22f9c Reorganize the source tree
Move most of "ada/*" to the root directory (this makes sense, as this
repository has been dedicated to Libadalang for years), and rename
"ada/language" to "ada".

TN: T914-010
2020-11-02 16:51:46 +01:00