Commit edc5e5f
committed
C++: Simplify defDependsOnDef for AssignOperation
These cases were unnecessarily transitive. There is no need for
`defDependsOnDef` to be transitive since that's handled in
`defDependsOnDefTransitively`.
The dependency information from the LHS of an `AssignmentOperation` is
now deduced the say way as the information from the RHS: by calling
`exprDependsOnDef`. This should effectively give us the same information
and recursion structure as if the operation (`x += e`) were desugared
(`x = x + e`).1 parent fe72b55 commit edc5e5f
File tree
1 file changed
+10
-16
lines changed- cpp/ql/src/semmle/code/cpp/rangeanalysis
1 file changed
+10
-16
lines changedLines changed: 10 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
| 244 | + | |
| 245 | + | |
248 | 246 | | |
249 | 247 | | |
250 | | - | |
| 248 | + | |
251 | 249 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
| 250 | + | |
| 251 | + | |
256 | 252 | | |
257 | 253 | | |
258 | | - | |
| 254 | + | |
259 | 255 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
| 256 | + | |
| 257 | + | |
264 | 258 | | |
265 | 259 | | |
266 | 260 | | |
267 | 261 | | |
268 | | - | |
| 262 | + | |
269 | 263 | | |
270 | 264 | | |
271 | 265 | | |
| |||
0 commit comments