From c6ad438bfcff5652d4769cf01d81c0ad1857e9a7 Mon Sep 17 00:00:00 2001 From: Taus Date: Wed, 26 Nov 2025 21:58:26 +0000 Subject: [PATCH] Python: Add change note --- .../2025-11-26-remove-top-level-points-to-import.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 python/ql/lib/change-notes/2025-11-26-remove-top-level-points-to-import.md diff --git a/python/ql/lib/change-notes/2025-11-26-remove-top-level-points-to-import.md b/python/ql/lib/change-notes/2025-11-26-remove-top-level-points-to-import.md new file mode 100644 index 00000000000..eb096c0b97f --- /dev/null +++ b/python/ql/lib/change-notes/2025-11-26-remove-top-level-points-to-import.md @@ -0,0 +1,7 @@ +--- +category: breaking +--- + +- All modules that depend on the points-to analysis have now been removed from the top level `python.qll` module. To access the points-to functionality, import the new `LegacyPointsTo` module. This also means that some predicates have been removed from various classes, for instance `Function.getFunctionObject()`. To access these predicates, import the `LegacyPointsTo` module and use the `FunctionWithPointsTo` class instead. Most cases follow this pattern, but there are a few exceptions: + - The `getLiteralObject` method on `ImmutableLiteral` subclasses has been replaced with a predicate `getLiteralObject(ImmutableLiteral l)` in the `LegacyPointsTo` module. + - The `getMetrics` method on `Function`, `Class`, and `Module` has been removed. To access metrics, import `LegacyPointsTo` and use the classes `FunctionMetrics`, etc. instead.