File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
cpp/ql/lib/semmle/code/cpp/rangeanalysis Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 11import cpp
22
33/**
4- * Describes whether a relation is 'strict' (that is, a `<` or `>`
4+ * The strictness of a relation. Either 'strict' (that is, a `<` or `>`
55 * relation) or 'non-strict' (a `<=` or `>=` relation).
66 */
7- newtype RelationStrictness =
7+ newtype TRelationStrictness =
88 /**
99 * Represents that a relation is 'strict' (that is, a `<` or `>` relation).
1010 */
@@ -14,6 +14,19 @@ newtype RelationStrictness =
1414 */
1515 Nonstrict ( )
1616
17+ /**
18+ * The strictness of a relation. Either 'strict' (that is, a `<` or `>`
19+ * relation) or 'non-strict' (a `<=` or `>=` relation).
20+ */
21+ class RelationStrictness extends TRelationStrictness {
22+ /** Gets the string representation of this relation strictness. */
23+ string toString ( ) {
24+ this = Strict ( ) and result = "strict"
25+ or
26+ this = Nonstrict ( ) and result = "non-strict"
27+ }
28+ }
29+
1730/**
1831 * Describes whether a relation is 'greater' (that is, a `>` or `>=`
1932 * relation) or 'lesser' (a `<` or `<=` relation).
You can’t perform that action at this time.
0 commit comments