Skip to content

Commit 83adf79

Browse files
committed
Cfg: Fix compilation.
1 parent 2d61fc5 commit 83adf79

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

shared/controlflow/codeql/controlflow/Cfg.qll

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,9 @@ module MakeWithSplitting<
11221122
/** Gets the scope of this node. */
11231123
CfgScope getScope() { result = getNodeCfgScope(this) }
11241124

1125+
/** Gets the enclosing callable of this node. */
1126+
CfgScope getEnclosingCallable() { result = this.getScope() }
1127+
11251128
/** Gets a successor node of a given type, if any. */
11261129
Node getASuccessor(SuccessorType t) { result = getASuccessor(this, t) }
11271130

@@ -1315,9 +1318,7 @@ module MakeWithSplitting<
13151318
private module PrintGraphInput implements Pp::InputSig<Location> {
13161319
class Callable = CfgScope;
13171320

1318-
class ControlFlowNode extends Node {
1319-
Callable getEnclosingCallable() { result = this.getScope() }
1320-
}
1321+
class ControlFlowNode = Node;
13211322

13221323
ControlFlowNode getASuccessor(ControlFlowNode n, SuccessorType t) {
13231324
result = n.getASuccessor(t)

shared/controlflow/codeql/controlflow/PrintGraph.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ module PrintGraph<LocationSig Location, InputSig<Location> Input> {
102102

103103
/** Provides the input to `ViewCfgQuery`. */
104104
signature module ViewCfgQueryInputSig<FileSig File> {
105-
/** The source file selected in the IDE. Should be an `external` predicate. */
105+
/** Gets the source file selected in the IDE. Should be an `external` predicate. */
106106
string selectedSourceFile();
107107

108-
/** The source line selected in the IDE. Should be an `external` predicate. */
108+
/** Gets the source line selected in the IDE. Should be an `external` predicate. */
109109
int selectedSourceLine();
110110

111-
/** The source column selected in the IDE. Should be an `external` predicate. */
111+
/** Gets the source column selected in the IDE. Should be an `external` predicate. */
112112
int selectedSourceColumn();
113113

114114
/**

0 commit comments

Comments
 (0)