Skip to content

Commit 51bab81

Browse files
authored
Merge pull request github#5622 from MathiasVP/inline-is-before
C++: Inline Location::isBefore
2 parents a9527fd + 03b12db commit 51bab81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/semmle/code/cpp/Location.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class Location extends @location {
7272
}
7373

7474
/** Holds if `this` comes on a line strictly before `l`. */
75+
pragma[inline]
7576
predicate isBefore(Location l) {
7677
this.getFile() = l.getFile() and this.getEndLine() < l.getStartLine()
7778
}

0 commit comments

Comments
 (0)