CodeQL library for C/C++
codeql/cpp-all 1.1.2-dev (changelog, source)
Search

Member predicate Location::isBefore

Holds if this comes strictly before l. The boolean sameLine is true if l is on the same line as this, but starts at a later column. Otherwise, sameLine is false.

predicate isBefore(Location l, boolean sameLine)