We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c6a1f1 commit 799e19bCopy full SHA for 799e19b
cpp/ql/test/query-tests/definitions/locationInfo.ql
@@ -11,8 +11,8 @@ class Link extends Top {
11
* Gets the length of the longest line in file `f`.
12
*/
13
pragma[nomagic]
14
-private int maxCols(File f) { result = max(Location l | l.getFile() = f | [l.getStartColumn(), l.getEndColumn()]) }
15
-
+private int maxCols(File f) { result = max(Location l | l.getFile() = f | l.getStartColumn().maximum(l.getEndColumn())) }
+
16
/**
17
* Gets the location of an element that has a link-to-definition (in a similar manner to
18
* `Location.charLoc`)
0 commit comments