copilot-swe-agent[bot]
0ea1b8596e
Add PEP249 connection tracking through class attribute wrappers
...
Introduce two new Connection::InstanceSource subclasses in PEP249.qll:
- ConnectionGetterAttributeRead: recognises self._conn reads inside
getter methods of classes whose __init__ stores a connect() call in
that attribute. The AttrRead node coincides with the return node, so
the existing TypeTracker returnStep propagates the connection type to
all call sites automatically.
- ConnectionConstructorAttributeRead: recognises ClassName()._conn
direct attribute reads on constructor-call results.
Both classes share the classStoresConnectionInInit helper predicate
that checks for the self.attr = dbapi.connect() store pattern in __init__.
Also adds test cases for the new patterns in the hdbcli test suite
and a change note.
2026-05-21 23:22:29 +00:00
..
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-09 20:37:11 +00:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-09 19:55:42 +00:00
2024-12-03 19:18:57 +01:00
2024-12-09 20:37:11 +00:00
2024-12-03 19:18:57 +01:00
2024-12-09 20:37:11 +00:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2026-02-16 13:48:32 +00:00
2024-12-03 19:18:57 +01:00
2026-03-04 12:45:05 +00:00
2026-03-04 12:45:05 +00:00
2026-03-04 12:45:05 +00:00
2026-03-04 13:11:38 +00:00
2026-03-04 12:45:05 +00:00
2024-12-18 15:58:51 +01:00
2026-03-04 12:45:05 +00:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-09 20:37:11 +00:00
2024-12-03 19:18:57 +01:00
2026-05-21 23:22:29 +00:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2026-01-30 12:50:25 +00:00
2026-03-04 12:45:05 +00:00
2024-12-09 20:37:11 +00:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2025-07-15 13:43:00 +02:00
2024-12-09 20:37:11 +00:00
2024-12-03 19:18:57 +01:00
2024-04-12 09:20:30 +02:00
2024-12-03 19:18:57 +01:00
2026-03-04 12:45:05 +00:00
2026-03-04 12:45:05 +00:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2026-03-04 12:45:05 +00:00
2026-03-04 12:45:05 +00:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2025-08-25 14:14:16 +00:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2026-03-04 12:45:05 +00:00
2024-12-03 19:18:57 +01:00
2026-03-04 12:45:05 +00:00
2024-12-03 19:18:57 +01:00
2026-03-04 14:12:42 +00:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2025-11-26 15:47:56 +00:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2026-03-04 12:45:05 +00:00
2026-03-04 12:45:05 +00:00
2026-03-04 12:45:05 +00:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2025-12-01 20:27:48 +00:00
2024-12-09 20:37:11 +00:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2024-12-03 19:18:57 +01:00
2025-12-01 20:41:59 +00:00
2024-12-03 19:18:57 +01:00
2026-03-04 12:45:05 +00:00
2024-12-03 19:18:57 +01:00