File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed
cpp/ql/lib/semmle/code/cpp
csharp/ql/src/experimental/ir/implementation Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ private string escapeString(string s) {
46
46
* string representation comes first in lexicographical order.
47
47
*/
48
48
private Location getRepresentativeLocation ( Locatable ast ) {
49
- result = rank [ 1 ] ( Location loc | loc = ast .getLocation ( ) | loc order by loc .toString ( ) )
49
+ result = min ( Location loc | loc = ast .getLocation ( ) | loc order by loc .toString ( ) )
50
50
}
51
51
52
52
/**
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module InstructionConsistency {
35
35
// To avoid an overwhelming number of results when the extractor merges functions with the
36
36
// same name, just pick a single location.
37
37
result =
38
- rank [ 1 ] ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
38
+ min ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
39
39
}
40
40
}
41
41
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module InstructionConsistency {
35
35
// To avoid an overwhelming number of results when the extractor merges functions with the
36
36
// same name, just pick a single location.
37
37
result =
38
- rank [ 1 ] ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
38
+ min ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
39
39
}
40
40
}
41
41
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module InstructionConsistency {
35
35
// To avoid an overwhelming number of results when the extractor merges functions with the
36
36
// same name, just pick a single location.
37
37
result =
38
- rank [ 1 ] ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
38
+ min ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
39
39
}
40
40
}
41
41
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module InstructionConsistency {
35
35
// To avoid an overwhelming number of results when the extractor merges functions with the
36
36
// same name, just pick a single location.
37
37
result =
38
- rank [ 1 ] ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
38
+ min ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
39
39
}
40
40
}
41
41
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module InstructionConsistency {
35
35
// To avoid an overwhelming number of results when the extractor merges functions with the
36
36
// same name, just pick a single location.
37
37
result =
38
- rank [ 1 ] ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
38
+ min ( Language:: Location loc | loc = irFunc .getLocation ( ) | loc order by loc .toString ( ) )
39
39
}
40
40
}
41
41
You can’t perform that action at this time.
0 commit comments