Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions shared/dataflow/codeql/dataflow/VariableCapture.qll
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ module Flow<
final private class CfgBb = Cfg::BasicBlock;

private class BasicBlock extends CfgBb {
/** Gets the callable that contains this basic block. */
Callable getEnclosingCallable() { result = basicBlockGetEnclosingCallable(this) }
}

Expand Down
1 change: 1 addition & 0 deletions shared/util/codeql/util/Option.qll
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ module LocatableOption<LocationSig Location, WithLocation<Location>::LocatableTy
* given type.
*/
class Option extends BaseOption {
/** Gets the location of this option. For `None`, returns an empty location. */
Location getLocation() {
result = this.asSome().getLocation()
or
Expand Down
Loading