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) {
4646 * string representation comes first in lexicographical order.
4747 */
4848private 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 ( ) )
5050}
5151
5252/**
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module InstructionConsistency {
3535 // To avoid an overwhelming number of results when the extractor merges functions with the
3636 // same name, just pick a single location.
3737 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 ( ) )
3939 }
4040 }
4141
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module InstructionConsistency {
3535 // To avoid an overwhelming number of results when the extractor merges functions with the
3636 // same name, just pick a single location.
3737 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 ( ) )
3939 }
4040 }
4141
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module InstructionConsistency {
3535 // To avoid an overwhelming number of results when the extractor merges functions with the
3636 // same name, just pick a single location.
3737 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 ( ) )
3939 }
4040 }
4141
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module InstructionConsistency {
3535 // To avoid an overwhelming number of results when the extractor merges functions with the
3636 // same name, just pick a single location.
3737 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 ( ) )
3939 }
4040 }
4141
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ module InstructionConsistency {
3535 // To avoid an overwhelming number of results when the extractor merges functions with the
3636 // same name, just pick a single location.
3737 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 ( ) )
3939 }
4040 }
4141
You can’t perform that action at this time.
0 commit comments