mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Update cpp/ql/src/semmle/code/cpp/Location.qll
Co-authored-by: Jonas Jensen <jbj@github.com>
This commit is contained in:
@@ -128,7 +128,7 @@ deprecated library class LocationExpr extends Location, @location_expr { }
|
||||
* Gets the length of the longest line in file `f`.
|
||||
*/
|
||||
pragma[nomagic]
|
||||
private int maxCols(File f) { result = max(Location l | l.getFile() = f | [l.getStartColumn(), l.getEndColumn()]) }
|
||||
private int maxCols(File f) { result = max(Location l | l.getFile() = f | l.getStartColumn().maximum(l.getEndColumn())) }
|
||||
|
||||
/**
|
||||
* A C/C++ element that has a location in a file
|
||||
|
||||
Reference in New Issue
Block a user