Skip to content

Commit

Permalink
Rust: "control-flow" -> "control flow"
Browse files Browse the repository at this point in the history
  • Loading branch information
hvitved committed Nov 21, 2024
1 parent be7aca9 commit 86a7c48
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions misc/codegen/templates/ql_cfg_nodes.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ module MakeCfgNodes<LocationSig Loc, InputSig<Loc> Input> {
}

/**
* Holds if there is a control-flow path from `cfn` to `cfnChild`, where `cfn`
* is a control-flow node for this AST node, and `cfnChild` is a control-flow
* Holds if there is a control flow path from `cfn` to `cfnChild`, where `cfn`
* is a control flow node for this AST node, and `cfnChild` is a control flow
* node for `child`.
*
* This predicate should be implemented at the place where `MakeCfgNodes` is
Expand Down
2 changes: 1 addition & 1 deletion rust/ql/.generated.list

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ private module CfgInput implements InputSig<Location> {

predicate completionIsValidFor = C::completionIsValidFor/2;

/** An AST node with an associated control-flow graph. */
/** An AST node with an associated control flow graph. */
class CfgScope = Scope::CfgScope;

CfgScope getCfgScope(AstNode n) {
Expand Down
2 changes: 1 addition & 1 deletion rust/ql/lib/codeql/rust/controlflow/internal/Scope.qll
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ private import ControlFlowGraphImpl
private import codeql.rust.elements.internal.generated.ParentChild

/**
* A control-flow graph (CFG) scope.
* A control flow graph (CFG) scope.
*/
abstract private class CfgScopeImpl extends AstNode {
/** Holds if `first` is executed first when entering `scope`. */
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions rust/ql/lib/codeql/rust/dataflow/Ssa.qll
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module Ssa {
}

/**
* Gets a control-flow node that reads the value of this SSA definition.
* Gets a control flow node that reads the value of this SSA definition.
*
* Example:
*
Expand All @@ -54,7 +54,7 @@ module Ssa {
final CfgNode getARead() { result = SsaImpl::getARead(this) }

/**
* Gets a first control-flow node that reads the value of this SSA definition.
* Gets a first control flow node that reads the value of this SSA definition.
* That is, a read that can be reached from this definition without passing
* through other reads.
*
Expand Down Expand Up @@ -83,7 +83,7 @@ module Ssa {
final CfgNode getAFirstRead() { SsaImpl::firstRead(this, result) }

/**
* Gets a last control-flow node that reads the value of this SSA definition.
* Gets a last control flow node that reads the value of this SSA definition.
* That is, a read that can reach the end of the enclosing CFG scope, or another
* SSA definition for the source variable, without passing through any other read.
*
Expand Down
2 changes: 1 addition & 1 deletion rust/ql/lib/codeql/rust/dataflow/internal/DataFlowImpl.qll
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ module Node {
* A node in the data flow graph that corresponds to an expression in the
* AST.
*
* Note that because of control-flow splitting, one `Expr` may correspond
* Note that because of control flow splitting, one `Expr` may correspond
* to multiple `ExprNode`s, just like it may correspond to multiple
* `ControlFlow::Node`s.
*/
Expand Down
4 changes: 2 additions & 2 deletions rust/ql/lib/codeql/rust/elements/internal/AstNodeImpl.qll
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ module Impl {
}

/**
* Gets a control-flow node for this AST node, if any.
* Gets a control flow node for this AST node, if any.
*
* Note that because of _control-flow splitting_, one `AstNode` node may correspond
* Note that because of _control flow splitting_, one `AstNode` node may correspond
* to multiple `CfgNode`s. Example:
*
* ```rust
Expand Down

0 comments on commit 86a7c48

Please sign in to comment.