File tree Expand file tree Collapse file tree
cpp/ql/src/Likely Bugs/Leap Year Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,16 +204,16 @@ class OperationSource extends Expr {
204204class YearFieldAssignmentNode extends DataFlow:: Node {
205205 YearFieldAssignmentNode ( ) {
206206 this .asExpr ( ) instanceof YearFieldAssignment
207- or
208- this .asDefiningArgument ( ) instanceof YearFieldAccess
209- or
210- // TODO: is there a better way to do this?
211- // i.e., without having to be cognizant of the addressof
212- // occurring, especially if this occurs on a dataflow
213- exists ( AddressOfExpr aoe |
214- aoe = this .asDefiningArgument ( ) and
215- aoe .getOperand ( ) instanceof YearFieldAccess
216- )
207+ // or
208+ // this.asDefiningArgument() instanceof YearFieldAccess
209+ // or
210+ // // TODO: is there a better way to do this?
211+ // // i.e., without having to be cognizant of the addressof
212+ // // occurring, especially if this occurs on a dataflow
213+ // exists(AddressOfExpr aoe |
214+ // aoe = this.asDefiningArgument() and
215+ // aoe.getOperand() instanceof YearFieldAccess
216+ // )
217217 }
218218
219219 YearFieldAccess getYearFieldAccess ( ) {
You can’t perform that action at this time.
0 commit comments