Pierre-Marie de Rodat
5042cfdd1e
Merge branch 'mr/pmderodat/24_sustained' into '24-sustained'
...
[24] Fix a couple of flake8 issues
See merge request eng/libadalang/langkit!1504
2026-01-26 10:37:05 +00:00
Pierre-Marie de Rodat
058b9b9f15
properties/invalid_{eq,let}: fix new flake8 issues
...
Note that these fixes were not needed on master because the transition
to Lkt removed the affected Python source files before the new flake8
issues could show up.
2026-01-26 10:25:06 +00:00
Pierre-Marie de Rodat
f696d6b61a
lexical_envs/stale_rebindings/main.py: fix a new flake8 issue
...
(cherry picked from commit 96b49d137c )
2026-01-26 10:24:39 +00:00
Pierre-Marie de Rodat
a475752481
Merge branch 'mr/pmderodat/24_sustained' into '24-sustained'
...
[24] Fix invalid escape sequences in Python code
See merge request eng/libadalang/langkit!1501
2026-01-23 10:17:56 +00:00
Pierre-Marie de Rodat
9a535e0caf
Fix invalid escape sequences in Python code
...
With recent Python versions, this triggers a SyntaxWarning: address
them.
(cherry picked from commit 7feab1de46 )
2026-01-23 10:17:30 +00:00
Pierre-Marie de Rodat
a8ad44d18e
Merge branch 'mr/pmderodat/24_sustained_fix' into '24-sustained'
...
[24] langkit/compiled_types.py: fix an incorrect backport
See merge request eng/libadalang/langkit!1500
2026-01-23 09:24:01 +00:00
Pierre-Marie de Rodat
af87c461e3
langkit/compiled_types.py: fix an incorrect backport
2026-01-23 09:02:33 +00:00
Pierre-Marie de Rodat
aa4a4de857
Merge branch 'mr/pmderodat/24_sustained' into '24-sustained'
...
[24-sustained] Adapt to Python 3.13 to fix builds
See merge request eng/libadalang/langkit!1498
2026-01-21 08:55:04 +00:00
Pierre-Marie de Rodat
cd5b9b8dbe
Testsuite: adapt Python traceback collapser for Python 3.13
...
Starting with Python 3.13, traceback entries may contain more than a
single line of quoted code:
File "...", line ..., in ...
some_multi_line_fn_call(
~~~~~~~~~~~~~~~~~~~~~~~^
arg1,
^^^^^
arg2,
^^^^^
...<X lines>...
argN,
^^^^^
)
^
Adapt the testuite's Python traceback collapsing code accordingly.
(cherry picked from commit 13378a252b )
2026-01-21 08:12:35 +00:00
Pierre-Marie de Rodat
98cabd34b1
Transition uses of the Python pipes module to shlex
...
"pipes" was removed from Python 3.13.
(cherry picked from commit dbacb9b554 )
2026-01-21 08:12:31 +00:00
Pierre-Marie de Rodat
a30687e053
Merge branch 'mr/pmderodat/memleak' into '24-sustained'
...
valgrind_supp/ocaml.supp: add an entry for a TLS support issue
See merge request eng/libadalang/langkit!1383
2025-05-06 15:13:51 +00:00
Pierre-Marie de Rodat
bc9f3c0d67
valgrind_supp/ocaml.supp: add an entry for a TLS support issue
2025-05-05 09:48:15 +00:00
Pierre-Marie de Rodat
07218ed24a
Merge branch 'mr/pmderodat/24.2' into '24.2'
...
[24.2] langkit/windows.py: fix Python 3.8 handling
See merge request eng/libadalang/langkit!1100
2024-05-27 09:01:43 +00:00
Pierre-Marie de Rodat
81c164b7dc
langkit/windows.py: fix Python 3.8 handling
...
(cherry picked from commit 2e3cbe526d )
2024-05-27 10:52:02 +02:00
Ghjuvan Lacambre
a754e71010
Merge branch 'backport/eng/libadalang/langkit!998' into '24.2'
...
OCaml API: add defensive code when reading an exception
See merge request eng/libadalang/langkit!1005
2024-02-09 09:55:47 +00:00
Daniel Mercier
6b91cd7016
OCaml API: add defensive code when reading an exception
...
We have observed random segfaults when accessing last_exception.information,
which is apparently equal to null (while this is never supposed to happen).
Add defensive code to protect against this case.
Issue: eng/codepeer/infer#220
(cherry picked from commit e192fa0325 )
2024-02-08 18:20:04 +01:00
Raphaël Amiard
3443fd4d6d
Merge branch '241_fast_forward' into '24.1'
...
Fast forward 24.1 branch
See merge request eng/libadalang/langkit!979
2023-12-11 15:21:30 +00:00
Pierre-Marie de Rodat
96cf51ff6b
C API: add a function to create a bare entity from a node
2023-12-08 11:42:05 +00:00
Pierre-Marie de Rodat
5280e12804
c_api/general: use "foo_node_image" to print nodes
...
This gives more accurate descriptions than just looking at the kind.
2023-12-08 11:42:05 +00:00
Pierre-Marie de Rodat
b5d6f4af31
c_api/general: minor reformattings
2023-12-08 11:42:05 +00:00
Pierre-Marie de Rodat
084c81194e
Python bindings: make the version number PEP 440-compliant
2023-12-08 11:42:05 +00:00
Pierre-Marie de Rodat
8d9afae741
C API: make opaque pointers incompatible
...
In the generated C header, replace:
typedef void *X;
declarations ("opaque pointers") with:
typedef struct X__struct *X;
So that implicit conversions between them (generally a mistake) are
rejected. Also fix the issues in the rewriting API that can be found
thihs way.
2023-12-08 11:42:05 +00:00
Pierre-Marie de Rodat
cf5ad3d9fe
C API: export symbols for the rewriting API
...
Include the $.Rewriting_Impl unit to the "library interface" in the
generated project file, as that unit contains the definitions for
rewriting API C symbols. The rewriting C API testcase worked so far
because it links its test program to the generated *static* library.
2023-12-08 11:42:05 +00:00
Romain Beguet
776a9b4452
Improve explanations of exceptions during evaluation of partial solution.
2023-12-08 11:42:05 +00:00
Pierre-Marie de Rodat
bd1ca9d3a8
Bind the rewriting API to C
2023-12-08 11:42:05 +00:00