16 Commits

Author SHA1 Message Date
Pierre-Marie de Rodat
6830a1a07d Preprocessing: add handling for the new -e gnatprep switch 2025-10-01 11:56:25 +00:00
Pierre-Marie de Rodat
f39ebe979e C/Python/OCaml/Java: bind all GPR loading options 2025-09-19 11:42:47 +00:00
Pierre-Marie de Rodat
fca2a6ff02 Update after recent Langkit breaking changes 2025-01-09 20:25:03 +00:00
Daniel Mercier
38ff3392dd Bind target information type and primitives to the OCaml API
Issue: eng/libadalang/libadalang#1162
2024-10-15 16:12:16 +02:00
Pierre-Marie de Rodat
a81de518fc Add Vim settings for OCaml extensions 2024-10-08 16:03:00 +00:00
Pierre-Marie de Rodat
210f039cc6 C/Python/OCaml APIs: bind GPR2's autoconf language restriction to Ada 2024-09-06 08:00:19 +00:00
Hugo Guerrier
6490b69c1e Add support for .cgpr files into GPR project handling 2024-05-29 13:28:57 +00:00
Daniel Mercier
d1d9de6b35 Keep gpr_project alive when creating an analysis context from it
Issue: eng/libadalang/libadalang#1054
2023-09-15 17:00:47 +02:00
Daniel Mercier
75894f1399 [ocaml api] Bind create_context_from_project 2023-09-14 14:32:46 +00:00
Daniel Mercier
8dd44cdb97 [ocaml api] Refactor extension placement
Move create_unit_provider function inside GPRProject. It was in
UnitProvider before.
2023-09-14 14:32:46 +00:00
Daniel Mercier
4e54265d02 Stop calling create_project_unit_provider
This is the same as calling GPRProject.load and then
UnitProvider.gpr_project. But still keep for_project that is
doing both at once.

Refactor the code a bit so that UnitProvider functions can rely on
GPRProject module (was the other way around).

Closes #988
2023-05-10 12:28:05 +00:00
Daniel Mercier
7c5239c394 Fix loading an invalid project
The raisable mecanism is not used correctly here and thus,
ada_get_last_exception is not called when calling ada_gpr_project_load.
Fix this by correctly binding ada_gpr_project_load.

Also fix the original test that was not correctly showing this issue...

Closes #992
2023-05-09 15:19:59 +02:00
Pierre-Marie de Rodat
935217e1b7 Libadalang.Project_Provider: extend the Source_Files function
Add a new argument (with default value, to avoid breaking the public
API) that controls the set of projects to inspect. This allows to
override the default behavior, which starts from the root project only.

Also extend the C and Python APIs accordingly. Leave the OCaml bindings
for later.
2023-04-05 08:24:06 +00:00
Daniel Mercier
3031d06e45 Fix OCaml bindings after C api changes
TN: TC21-009
2022-10-25 18:22:41 +02:00
Daniel Mercier
ae76066d6a Bind creation of preprocessor using a gpr file
TN: TC21-009
2022-10-25 10:58:11 +02:00
Daniel Mercier
bb33d7e49d Refactor GPR project related functions in OCaml bindings
TN: TC21-009
2022-10-25 10:58:11 +02:00