Skip to content

Commit 799e19b

Browse files
committed
C++: Update the other version as well.
1 parent 3c6a1f1 commit 799e19b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/test/query-tests/definitions/locationInfo.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class Link extends Top {
1111
* Gets the length of the longest line in file `f`.
1212
*/
1313
pragma[nomagic]
14-
private int maxCols(File f) { result = max(Location l | l.getFile() = f | [l.getStartColumn(), l.getEndColumn()]) }
15-
14+
private int maxCols(File f) { result = max(Location l | l.getFile() = f | l.getStartColumn().maximum(l.getEndColumn())) }
15+
1616
/**
1717
* Gets the location of an element that has a link-to-definition (in a similar manner to
1818
* `Location.charLoc`)

0 commit comments

Comments
 (0)