We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86123fe commit f5501daCopy full SHA for f5501da
cpp/common/src/codingstandards/cpp/standardlibrary/Assert.qll
@@ -103,8 +103,8 @@ private module Asserts {
103
/**
104
* Holds if the given conditional appears to assert its condition to be `isTrue`.
105
*
106
- * For example, `x || abort();` appears to assert `x` is true, while `if (!x) abort();`
107
- * appears to assert `x` is false.
+ * For example, both `x || abort();` and `if (!x) abort();` effectively assert that `x`
+ * is true (in the second case, by asserting that `!x` is false).
108
*/
109
predicate appearsToAssert(Conditional conditional, Boolean isTrue) {
110
// Check if an aborting side is reachable via the given boolean value of the condition.
0 commit comments