mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C++: Update the other version as well.
This commit is contained in:
@@ -11,8 +11,8 @@ class Link extends Top {
|
||||
* 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())) }
|
||||
|
||||
/**
|
||||
* Gets the location of an element that has a link-to-definition (in a similar manner to
|
||||
* `Location.charLoc`)
|
||||
|
||||
Reference in New Issue
Block a user