mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
For whatever reason, the CFG node for exceptions and exception groups was placed with the points-to code. (Probably because a lot of the predicates depended on points-to.) However, as it turned out, two of the SSA modules only depended on non-points-to properties of these nodes, and so it was fairly straightforward to remove the imports of `LegacyPointsTo` for those modules. In the process, I moved the aforementioned CFG node types into `Flow.qll`, and changed the classes in the `Exceptions` module to the `...WithPointsTo` form that we introduced elsewhere.
7 lines
198 B
Plaintext
7 lines
198 B
Plaintext
import python
|
|
private import LegacyPointsTo
|
|
|
|
from ExceptFlowNodeWithPointsTo ex, Value val
|
|
where ex.handledException(val, _, _)
|
|
select ex.getLocation().getStartLine(), ex.toString(), val.toString()
|