Skip to content

Commit 87f0b0e

Browse files
author
Dave Bartolomeo
committed
C++: QLDoc for EdgeKind.qll
1 parent 440ea6a commit 87f0b0e

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

cpp/ql/src/semmle/code/cpp/ir/implementation/EdgeKind.qll

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Provides classes that specify the conditions under which control flows along a given edge.
3+
*/
4+
15
private import internal.EdgeKindInternal
26

37
private newtype TEdgeKind =
@@ -77,9 +81,15 @@ class CaseEdge extends EdgeKind, TCaseEdge {
7781
else result = "Case[" + minValue + ".." + maxValue + "]"
7882
}
7983

80-
string getMinValue() { result = minValue }
84+
/**
85+
* Gets the smallest value of the switch expression for which control will flow along this edge.
86+
*/
87+
final string getMinValue() { result = minValue }
8188

82-
string getMaxValue() { result = maxValue }
89+
/**
90+
* Gets the largest value of the switch expression for which control will flow along this edge.
91+
*/
92+
final string getMaxValue() { result = maxValue }
8393
}
8494

8595
/**

csharp/ql/src/experimental/ir/implementation/EdgeKind.qll

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Provides classes that specify the conditions under which control flows along a given edge.
3+
*/
4+
15
private import internal.EdgeKindInternal
26

37
private newtype TEdgeKind =
@@ -77,9 +81,15 @@ class CaseEdge extends EdgeKind, TCaseEdge {
7781
else result = "Case[" + minValue + ".." + maxValue + "]"
7882
}
7983

80-
string getMinValue() { result = minValue }
84+
/**
85+
* Gets the smallest value of the switch expression for which control will flow along this edge.
86+
*/
87+
final string getMinValue() { result = minValue }
8188

82-
string getMaxValue() { result = maxValue }
89+
/**
90+
* Gets the largest value of the switch expression for which control will flow along this edge.
91+
*/
92+
final string getMaxValue() { result = maxValue }
8393
}
8494

8595
/**

0 commit comments

Comments
 (0)