mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
`getLocation()` will now exists for all entities. When there is no valid location, the location will still not be emitted in the DB, but on the QL side we will then assign a special `UnknownLocation` with empty filename and 0 for line/column start/end. This unknown location is currently emitted (with a unique `@` key) at the start of every extraction, but we can move it elsewhere (and possibly in a unique global trap file) at a later stage, possibly after or when we rework the trap file strategy. This should solve flakiness that was observed on the control flow tests, which is probably caused by the `nodes` predicate in the `TestOutput` class in `ControlFlowGraphImplShared.qll` not able to assign a proper rank when the node does not have a location.
3 lines
61 B
Plaintext
3 lines
61 B
Plaintext
| file://:0:0:0:0 | |
|
|
| hello.swift:0:0:0:0 | hello.swift |
|