Skip to content

Commit 4367b78

Browse files
committed
Shared: Use more standard QLDoc phrasing.
1 parent d1c0294 commit 4367b78

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

shared/dataflow/codeql/dataflow/DataFlow.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ signature module InputSig {
4343
*/
4444
class PostUpdateNode extends Node {
4545
/**
46-
* Retrieves the node that represents the pre-update operation.
46+
* Gets the node that represents the pre-update operation.
4747
* @return The pre-update node.
4848
*/
4949
Node getPreUpdateNode();
@@ -145,7 +145,7 @@ signature module InputSig {
145145
}
146146

147147
/**
148-
* Predicate to force high precision for the given content.
148+
* Holds if high precision should be used for the given content.
149149
*
150150
* @param c The content to force high precision for.
151151
*/
@@ -191,15 +191,15 @@ signature module InputSig {
191191
}
192192

193193
/**
194-
* Checks if the given parameter position matches the argument position.
194+
* Holds if the given parameter position matches the argument position.
195195
*
196196
* @param ppos The parameter position.
197197
* @param apos The argument position.
198198
*/
199199
predicate parameterMatch(ParameterPosition ppos, ArgumentPosition apos);
200200

201201
/**
202-
* Represents a simple local flow step between two nodes.
202+
* Holds if there is a simple local flow step between two nodes.
203203
*
204204
* @param node1 The first node in the flow step.
205205
* @param node2 The second node in the flow step.

shared/rangeanalysis/codeql/rangeanalysis/RangeAnalysis.qll

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -165,37 +165,37 @@ signature module Semantic {
165165
*/
166166
class Guard {
167167
/**
168-
* Returns a string representation of the guard.
168+
* Gets a string representation of the guard.
169169
*/
170170
string toString();
171171

172172
/**
173-
* Returns the basic block associated with the guard.
173+
* Gets the basic block associated with the guard.
174174
*/
175175
BasicBlock getBasicBlock();
176176

177177
/**
178-
* Returns the guard as an expression.
178+
* Gets the guard as an expression.
179179
*/
180180
Expr asExpr();
181181

182182
/**
183-
* Checks if the guard directly controls a given basic block.
183+
* Holds if the guard directly controls a given basic block.
184184
* @param controlled The basic block to check.
185185
* @param branch Indicates if the control is a branch or not.
186186
*/
187187
predicate directlyControls(BasicBlock controlled, boolean branch);
188188

189189
/**
190-
* Checks if the guard represents an equality between two expressions.
190+
* Holds if the guard represents an equality between two expressions.
191191
* @param e1 The first expression.
192192
* @param e2 The second expression.
193193
* @param polarity The polarity of the equality.
194194
*/
195195
predicate isEquality(Expr e1, Expr e2, boolean polarity);
196196

197197
/**
198-
* Checks if there is a branch edge between two basic blocks.
198+
* Holds if there is a branch edge between two basic blocks.
199199
* @param bb1 The first basic block.
200200
* @param bb2 The second basic block.
201201
* @param branch Indicates if the edge is a branch or not.
@@ -228,12 +228,12 @@ signature module Semantic {
228228
*/
229229
class SsaVariable {
230230
/**
231-
* Returns the expression where this SSA variable is used.
231+
* Gets the expression where this SSA variable is used.
232232
*/
233233
Expr getAUse();
234234

235235
/**
236-
* Returns the basic block where this SSA variable is defined.
236+
* Gets the basic block where this SSA variable is defined.
237237
*/
238238
BasicBlock getBasicBlock();
239239
}
@@ -251,7 +251,7 @@ signature module Semantic {
251251
*/
252252
class SsaExplicitUpdate extends SsaVariable {
253253
/**
254-
* Retrieves the expression that defines the value of the variable in this update.
254+
* Gets the expression that defines the value of the variable in this update.
255255
*
256256
* @return The defining expression.
257257
*/
@@ -350,17 +350,17 @@ signature module BoundSig<LocationSig Location, Semantic Sem, DeltaSig D> {
350350
*/
351351
class SemBound {
352352
/**
353-
* Returns a string representation of the semantic bound.
353+
* Gets a string representation of the semantic bound.
354354
*/
355355
string toString();
356356

357357
/**
358-
* Returns the location of the semantic bound.
358+
* Gets the location of the semantic bound.
359359
*/
360360
Location getLocation();
361361

362362
/**
363-
* Returns the expression associated with the semantic bound, given a delta.
363+
* Gets the expression associated with the semantic bound, given a delta.
364364
* @param delta - The delta value.
365365
*/
366366
Sem::Expr getExpr(D::Delta delta);

0 commit comments

Comments
 (0)