Skip to content

Commit

Permalink
Merge pull request #16892 from MathiasVP/fix-qldoc-on-GuardCondition
Browse files Browse the repository at this point in the history
C++: Update QLDoc on `GuardCondition`
  • Loading branch information
MathiasVP authored Jul 3, 2024
2 parents ce177c3 + 284007d commit 640c842
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cpp/ql/lib/semmle/code/cpp/controlflow/IRGuards.qll
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ class MatchValue extends AbstractValue, TMatchValue {
}

/**
* A Boolean condition in the AST that guards one or more basic blocks. This includes
* operands of logical operators but not switch statements.
* A Boolean condition in the AST that guards one or more basic blocks.
*/
cached
class GuardCondition extends Expr {
Expand Down Expand Up @@ -366,10 +365,10 @@ private predicate nonExcludedIRAndBasicBlock(IRBlock irb, BasicBlock controlled)
}

/**
* A Boolean condition in the IR that guards one or more basic blocks. This includes
* operands of logical operators but not switch statements. Note that `&&` and `||`
* don't have an explicit representation in the IR, and therefore will not appear as
* IRGuardConditions.
* A Boolean condition in the IR that guards one or more basic blocks.
*
* Note that `&&` and `||` don't have an explicit representation in the IR,
* and therefore will not appear as IRGuardConditions.
*/
cached
class IRGuardCondition extends Instruction {
Expand Down

0 comments on commit 640c842

Please sign in to comment.