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

Member predicate Location::fullLocationInfo

Holds if this element is in the specified container. The location spans column startcolumn of line startline to column endcolumn of line endline.

This predicate is similar to hasLocationInfo, but exposes the Container entity, rather than merely its path.

predicate fullLocationInfo(Container container, int startline, int startcolumn, int endline, int endcolumn)