mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
C++: Apply suggestions from code review
Co-Authored-By: Jonas Jensen <jbj@knef.dk>
This commit is contained in:
@@ -3,7 +3,7 @@ Using the guards library in C and C++
|
||||
|
||||
Overview
|
||||
--------
|
||||
The guards library (defined in ``semmle.code.cpp.controlflow.Guards``) provides a class ``GuardCondition`` representing boolean values which are used to make control flow decisions.
|
||||
The guards library (defined in ``semmle.code.cpp.controlflow.Guards``) provides a class ``GuardCondition`` representing Boolean values that are used to make control flow decisions.
|
||||
|
||||
The ``ensuresEq`` and ``ensuresLt`` predicates
|
||||
----------------------------------------------
|
||||
@@ -26,4 +26,4 @@ The ``comparesEq`` and ``comparesLt`` predicates help determine if the ``GuardCo
|
||||
|
||||
The ``controls`` predicate
|
||||
------------------------------------------------
|
||||
The ``controls`` predicate helps determine which blocks are only run when the ``IRGuardCondition`` evaluates a certain way. ``controls(block, testIsTrue)`` holds if ``block`` is only entered if the value of this condition is ``testIsTrue``.
|
||||
The ``controls`` predicate helps determine which blocks are only run when the ``IRGuardCondition`` evaluates a certain way. ``controls(block, testIsTrue)`` holds if ``block`` is only entered if the value of this condition is ``testIsTrue``.
|
||||
|
||||
Reference in New Issue
Block a user