mirror of
https://github.com/github/codeql.git
synced 2025-12-23 12:16:33 +01:00
renamed "rangeQuantifierLowerBound" to "range_quantifier_lower_bound"
This commit is contained in:
@@ -243,7 +243,7 @@ public class RegExpExtractor {
|
|||||||
if (nd.isGreedy()) trapwriter.addTuple("is_greedy", lbl);
|
if (nd.isGreedy()) trapwriter.addTuple("is_greedy", lbl);
|
||||||
|
|
||||||
long lo = nd.getLowerBound();
|
long lo = nd.getLowerBound();
|
||||||
if (inRange(lo)) trapwriter.addTuple("rangeQuantifierLowerBound", lbl, lo);
|
if (inRange(lo)) trapwriter.addTuple("range_quantifier_lower_bound", lbl, lo);
|
||||||
|
|
||||||
if (nd.hasUpperBound()) {
|
if (nd.hasUpperBound()) {
|
||||||
long hi = nd.getUpperBound();
|
long hi = nd.getUpperBound();
|
||||||
|
|||||||
@@ -1087,7 +1087,7 @@ regexpterm(#20375,11,#20374,0,"a{1}")
|
|||||||
locations_default(#20376,#10000,15,2,15,5)
|
locations_default(#20376,#10000,15,2,15,5)
|
||||||
hasLocation(#20375,#20376)
|
hasLocation(#20375,#20376)
|
||||||
is_greedy(#20375)
|
is_greedy(#20375)
|
||||||
rangeQuantifierLowerBound(#20375,1)
|
range_quantifier_lower_bound(#20375,1)
|
||||||
rangeQuantifierUpperBound(#20375,1)
|
rangeQuantifierUpperBound(#20375,1)
|
||||||
#20377=*
|
#20377=*
|
||||||
regexpterm(#20377,14,#20375,0,"a")
|
regexpterm(#20377,14,#20375,0,"a")
|
||||||
@@ -1111,7 +1111,7 @@ regexpterm(#20381,11,#20380,0,"a{1,}")
|
|||||||
locations_default(#20382,#10000,16,2,16,6)
|
locations_default(#20382,#10000,16,2,16,6)
|
||||||
hasLocation(#20381,#20382)
|
hasLocation(#20381,#20382)
|
||||||
is_greedy(#20381)
|
is_greedy(#20381)
|
||||||
rangeQuantifierLowerBound(#20381,1)
|
range_quantifier_lower_bound(#20381,1)
|
||||||
#20383=*
|
#20383=*
|
||||||
regexpterm(#20383,14,#20381,0,"a")
|
regexpterm(#20383,14,#20381,0,"a")
|
||||||
#20384=@"loc,{#10000},16,2,16,2"
|
#20384=@"loc,{#10000},16,2,16,2"
|
||||||
@@ -1134,7 +1134,7 @@ regexpterm(#20387,11,#20386,0,"a{1,2}")
|
|||||||
locations_default(#20388,#10000,17,2,17,7)
|
locations_default(#20388,#10000,17,2,17,7)
|
||||||
hasLocation(#20387,#20388)
|
hasLocation(#20387,#20388)
|
||||||
is_greedy(#20387)
|
is_greedy(#20387)
|
||||||
rangeQuantifierLowerBound(#20387,1)
|
range_quantifier_lower_bound(#20387,1)
|
||||||
rangeQuantifierUpperBound(#20387,2)
|
rangeQuantifierUpperBound(#20387,2)
|
||||||
#20389=*
|
#20389=*
|
||||||
regexpterm(#20389,14,#20387,0,"a")
|
regexpterm(#20389,14,#20387,0,"a")
|
||||||
@@ -1157,7 +1157,7 @@ regexpterm(#20393,11,#20392,0,"a{1}?")
|
|||||||
#20394=@"loc,{#10000},18,2,18,6"
|
#20394=@"loc,{#10000},18,2,18,6"
|
||||||
locations_default(#20394,#10000,18,2,18,6)
|
locations_default(#20394,#10000,18,2,18,6)
|
||||||
hasLocation(#20393,#20394)
|
hasLocation(#20393,#20394)
|
||||||
rangeQuantifierLowerBound(#20393,1)
|
range_quantifier_lower_bound(#20393,1)
|
||||||
rangeQuantifierUpperBound(#20393,1)
|
rangeQuantifierUpperBound(#20393,1)
|
||||||
#20395=*
|
#20395=*
|
||||||
regexpterm(#20395,14,#20393,0,"a")
|
regexpterm(#20395,14,#20393,0,"a")
|
||||||
@@ -1180,7 +1180,7 @@ regexpterm(#20399,11,#20398,0,"a{1,}?")
|
|||||||
#20400=@"loc,{#10000},19,2,19,7"
|
#20400=@"loc,{#10000},19,2,19,7"
|
||||||
locations_default(#20400,#10000,19,2,19,7)
|
locations_default(#20400,#10000,19,2,19,7)
|
||||||
hasLocation(#20399,#20400)
|
hasLocation(#20399,#20400)
|
||||||
rangeQuantifierLowerBound(#20399,1)
|
range_quantifier_lower_bound(#20399,1)
|
||||||
#20401=*
|
#20401=*
|
||||||
regexpterm(#20401,14,#20399,0,"a")
|
regexpterm(#20401,14,#20399,0,"a")
|
||||||
#20402=@"loc,{#10000},19,2,19,2"
|
#20402=@"loc,{#10000},19,2,19,2"
|
||||||
@@ -1202,7 +1202,7 @@ regexpterm(#20405,11,#20404,0,"a{1,2}?")
|
|||||||
#20406=@"loc,{#10000},20,2,20,8"
|
#20406=@"loc,{#10000},20,2,20,8"
|
||||||
locations_default(#20406,#10000,20,2,20,8)
|
locations_default(#20406,#10000,20,2,20,8)
|
||||||
hasLocation(#20405,#20406)
|
hasLocation(#20405,#20406)
|
||||||
rangeQuantifierLowerBound(#20405,1)
|
range_quantifier_lower_bound(#20405,1)
|
||||||
rangeQuantifierUpperBound(#20405,2)
|
rangeQuantifierUpperBound(#20405,2)
|
||||||
#20407=*
|
#20407=*
|
||||||
regexpterm(#20407,14,#20405,0,"a")
|
regexpterm(#20407,14,#20405,0,"a")
|
||||||
@@ -1671,7 +1671,7 @@ regexpterm(#20542,11,#20541,0,"a{")
|
|||||||
#20543=@"loc,{#10000},37,2,37,3"
|
#20543=@"loc,{#10000},37,2,37,3"
|
||||||
locations_default(#20543,#10000,37,2,37,3)
|
locations_default(#20543,#10000,37,2,37,3)
|
||||||
hasLocation(#20542,#20543)
|
hasLocation(#20542,#20543)
|
||||||
is_greedy(#20542)
|
is_greedy(#20542)
|
||||||
range_quantifier_lower_bound(#20542,0)
|
range_quantifier_lower_bound(#20542,0)
|
||||||
rangeQuantifierUpperBound(#20542,0)
|
rangeQuantifierUpperBound(#20542,0)
|
||||||
#20544=*
|
#20544=*
|
||||||
@@ -1710,7 +1710,7 @@ regexpterm(#20554,11,#20552,0,"a{")
|
|||||||
#20555=@"loc,{#10000},38,2,38,3"
|
#20555=@"loc,{#10000},38,2,38,3"
|
||||||
locations_default(#20555,#10000,38,2,38,3)
|
locations_default(#20555,#10000,38,2,38,3)
|
||||||
hasLocation(#20554,#20555)
|
hasLocation(#20554,#20555)
|
||||||
is_greedy(#20554)
|
is_greedy(#20554)
|
||||||
range_quantifier_lower_bound(#20554,0)
|
range_quantifier_lower_bound(#20554,0)
|
||||||
rangeQuantifierUpperBound(#20554,0)
|
rangeQuantifierUpperBound(#20554,0)
|
||||||
#20556=*
|
#20556=*
|
||||||
@@ -1757,7 +1757,7 @@ regexpterm(#20568,11,#20567,0,"a{2")
|
|||||||
#20569=@"loc,{#10000},39,2,39,4"
|
#20569=@"loc,{#10000},39,2,39,4"
|
||||||
locations_default(#20569,#10000,39,2,39,4)
|
locations_default(#20569,#10000,39,2,39,4)
|
||||||
hasLocation(#20568,#20569)
|
hasLocation(#20568,#20569)
|
||||||
is_greedy(#20568)
|
is_greedy(#20568)
|
||||||
range_quantifier_lower_bound(#20568,2)
|
range_quantifier_lower_bound(#20568,2)
|
||||||
rangeQuantifierUpperBound(#20568,2)
|
rangeQuantifierUpperBound(#20568,2)
|
||||||
#20570=*
|
#20570=*
|
||||||
|
|||||||
@@ -230,3 +230,8 @@ deprecated predicate regexpParseErrors(RegExpParseError id, RegExpTerm regexp, s
|
|||||||
* Use `RegExpQuantifier#isGreedy` instead.
|
* Use `RegExpQuantifier#isGreedy` instead.
|
||||||
*/
|
*/
|
||||||
deprecated predicate isGreedy(RegExpQuantifier id) { is_greedy(id) }
|
deprecated predicate isGreedy(RegExpQuantifier id) { is_greedy(id) }
|
||||||
|
/**
|
||||||
|
* Alias for the predicate `range_quantifier_lower_bound` defined in the .dbscheme.
|
||||||
|
* Use `RegExpRange#getLowerBound()` instead.
|
||||||
|
*/
|
||||||
|
deprecated predicate rangeQuantifierLowerBound(RegExpRange id, int lo) { range_quantifier_lower_bound(id, lo) }
|
||||||
|
|||||||
@@ -522,7 +522,7 @@ class RegExpOpt extends RegExpQuantifier, @regexp_opt {
|
|||||||
*/
|
*/
|
||||||
class RegExpRange extends RegExpQuantifier, @regexp_range {
|
class RegExpRange extends RegExpQuantifier, @regexp_range {
|
||||||
/** Gets the lower bound of the range. */
|
/** Gets the lower bound of the range. */
|
||||||
int getLowerBound() { rangeQuantifierLowerBound(this, result) }
|
int getLowerBound() { range_quantifier_lower_bound(this, result) }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the upper bound of the range, if any.
|
* Gets the upper bound of the range, if any.
|
||||||
|
|||||||
@@ -878,7 +878,7 @@ regexp_parse_errors (unique int id: @regexp_parse_error,
|
|||||||
@regexp_anchor = @regexp_dollar | @regexp_caret;
|
@regexp_anchor = @regexp_dollar | @regexp_caret;
|
||||||
|
|
||||||
is_greedy (int id: @regexp_quantifier ref);
|
is_greedy (int id: @regexp_quantifier ref);
|
||||||
rangeQuantifierLowerBound (unique int id: @regexp_range ref, int lo: int ref);
|
range_quantifier_lower_bound (unique int id: @regexp_range ref, int lo: int ref);
|
||||||
rangeQuantifierUpperBound (unique int id: @regexp_range ref, int hi: int ref);
|
rangeQuantifierUpperBound (unique int id: @regexp_range ref, int hi: int ref);
|
||||||
isCapture (unique int id: @regexp_group ref, int number: int ref);
|
isCapture (unique int id: @regexp_group ref, int number: int ref);
|
||||||
isNamedCapture (unique int id: @regexp_group ref, string name: string ref);
|
isNamedCapture (unique int id: @regexp_group ref, string name: string ref);
|
||||||
|
|||||||
@@ -20084,7 +20084,7 @@
|
|||||||
</relation>
|
</relation>
|
||||||
|
|
||||||
<relation>
|
<relation>
|
||||||
<name>rangeQuantifierLowerBound</name>
|
<name>range_quantifier_lower_bound</name>
|
||||||
<cardinality>146</cardinality>
|
<cardinality>146</cardinality>
|
||||||
<columnsizes>
|
<columnsizes>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
@@ -66,3 +66,5 @@ regexp_parse_errors.rel: reorder regexpParseErrors.rel(int id, int regexp, strin
|
|||||||
regexpParseErrors.rel: delete
|
regexpParseErrors.rel: delete
|
||||||
is_greedy.rel: reorder isGreedy.rel(int id) id
|
is_greedy.rel: reorder isGreedy.rel(int id) id
|
||||||
isGreedy.rel: delete
|
isGreedy.rel: delete
|
||||||
|
range_quantifier_lower_bound.rel: reorder rangeQuantifierLowerBound.rel(int id, int lo) id lo
|
||||||
|
rangeQuantifierLowerBound.rel: delete
|
||||||
|
|||||||
Reference in New Issue
Block a user