File tree Expand file tree Collapse file tree 5 files changed +7
-4
lines changed
rangeanalysis/new/internal/semantic/analysis Expand file tree Collapse file tree 5 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ dependencies:
9
9
codeql/ssa : ${workspace}
10
10
codeql/tutorial : ${workspace}
11
11
codeql/util : ${workspace}
12
+ warnOnImplicitThis : true
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import cpp
25
25
*/
26
26
abstract class StackVariableReachability extends string {
27
27
bindingset [ this ]
28
- StackVariableReachability ( ) { length ( ) >= 0 }
28
+ StackVariableReachability ( ) { this . length ( ) >= 0 }
29
29
30
30
/** Holds if `node` is a source for the reachability analysis using variable `v`. */
31
31
abstract predicate isSource ( ControlFlowNode node , StackVariable v ) ;
@@ -227,7 +227,7 @@ predicate bbSuccessorEntryReachesLoopInvariant(
227
227
*/
228
228
abstract class StackVariableReachabilityWithReassignment extends StackVariableReachability {
229
229
bindingset [ this ]
230
- StackVariableReachabilityWithReassignment ( ) { length ( ) >= 0 }
230
+ StackVariableReachabilityWithReassignment ( ) { this . length ( ) >= 0 }
231
231
232
232
/** Override this predicate rather than `isSource` (`isSource` is used internally). */
233
233
abstract predicate isSourceActual ( ControlFlowNode node , StackVariable v ) ;
@@ -330,7 +330,7 @@ abstract class StackVariableReachabilityWithReassignment extends StackVariableRe
330
330
*/
331
331
abstract class StackVariableReachabilityExt extends string {
332
332
bindingset [ this ]
333
- StackVariableReachabilityExt ( ) { length ( ) >= 0 }
333
+ StackVariableReachabilityExt ( ) { this . length ( ) >= 0 }
334
334
335
335
/** `node` is a source for the reachability analysis using variable `v`. */
336
336
abstract predicate isSource ( ControlFlowNode node , StackVariable v ) ;
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ module RangeStage<
277
277
*/
278
278
private class SafeCastExpr extends ConvertOrBoxExpr {
279
279
SafeCastExpr ( ) {
280
- conversionCannotOverflow ( getTrackedType ( pragma [ only_bind_into ] ( getOperand ( ) ) ) ,
280
+ conversionCannotOverflow ( getTrackedType ( pragma [ only_bind_into ] ( this . getOperand ( ) ) ) ,
281
281
pragma [ only_bind_out ] ( getTrackedType ( this ) ) )
282
282
}
283
283
}
Original file line number Diff line number Diff line change @@ -10,3 +10,4 @@ dependencies:
10
10
suites : codeql-suites
11
11
extractor : cpp
12
12
defaultSuiteFile : codeql-suites/cpp-code-scanning.qls
13
+ warnOnImplicitThis : true
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ dependencies:
5
5
codeql/cpp-queries : ${workspace}
6
6
extractor : cpp
7
7
tests : .
8
+ warnOnImplicitThis : true
You can’t perform that action at this time.
0 commit comments