mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Restructure classes representing calls
This commit is contained in:
@@ -1,21 +1,19 @@
|
||||
instances
|
||||
| gen_call_expr.rs:5:5:5:11 | foo(...) |
|
||||
| gen_call_expr.rs:6:5:6:23 | foo::<...>(...) |
|
||||
| gen_call_expr.rs:7:5:7:14 | ...(...) |
|
||||
| gen_call_expr.rs:8:5:8:10 | foo(...) |
|
||||
| gen_call_expr.rs:8:5:8:11 | foo(...) |
|
||||
| gen_call_expr.rs:9:5:9:23 | foo::<...>(...) |
|
||||
| gen_call_expr.rs:10:5:10:14 | ...(...) |
|
||||
| gen_call_expr.rs:11:5:11:10 | foo(...) |
|
||||
| gen_call_expr.rs:12:5:12:20 | ...::Some(...) |
|
||||
getArgList
|
||||
| gen_call_expr.rs:5:5:5:11 | foo(...) | gen_call_expr.rs:5:8:5:11 | ArgList |
|
||||
| gen_call_expr.rs:6:5:6:23 | foo::<...>(...) | gen_call_expr.rs:6:20:6:23 | ArgList |
|
||||
| gen_call_expr.rs:7:5:7:14 | ...(...) | gen_call_expr.rs:7:11:7:14 | ArgList |
|
||||
| gen_call_expr.rs:8:5:8:10 | foo(...) | gen_call_expr.rs:8:8:8:10 | ArgList |
|
||||
| gen_call_expr.rs:8:5:8:11 | foo(...) | gen_call_expr.rs:8:8:8:11 | ArgList |
|
||||
| gen_call_expr.rs:9:5:9:23 | foo::<...>(...) | gen_call_expr.rs:9:20:9:23 | ArgList |
|
||||
| gen_call_expr.rs:10:5:10:14 | ...(...) | gen_call_expr.rs:10:11:10:14 | ArgList |
|
||||
| gen_call_expr.rs:11:5:11:10 | foo(...) | gen_call_expr.rs:11:8:11:10 | ArgList |
|
||||
| gen_call_expr.rs:12:5:12:20 | ...::Some(...) | gen_call_expr.rs:12:17:12:20 | ArgList |
|
||||
getAttr
|
||||
getArg
|
||||
| gen_call_expr.rs:5:5:5:11 | foo(...) | 0 | gen_call_expr.rs:5:9:5:10 | 42 |
|
||||
| gen_call_expr.rs:6:5:6:23 | foo::<...>(...) | 0 | gen_call_expr.rs:6:21:6:22 | 42 |
|
||||
| gen_call_expr.rs:7:5:7:14 | ...(...) | 0 | gen_call_expr.rs:7:12:7:13 | 42 |
|
||||
| gen_call_expr.rs:8:5:8:10 | foo(...) | 0 | gen_call_expr.rs:8:9:8:9 | 1 |
|
||||
getFunction
|
||||
| gen_call_expr.rs:5:5:5:11 | foo(...) | gen_call_expr.rs:5:5:5:7 | foo |
|
||||
| gen_call_expr.rs:6:5:6:23 | foo::<...>(...) | gen_call_expr.rs:6:5:6:19 | foo::<...> |
|
||||
| gen_call_expr.rs:7:5:7:14 | ...(...) | gen_call_expr.rs:7:5:7:10 | foo[0] |
|
||||
| gen_call_expr.rs:8:5:8:10 | foo(...) | gen_call_expr.rs:8:5:8:7 | foo |
|
||||
| gen_call_expr.rs:8:5:8:11 | foo(...) | gen_call_expr.rs:8:5:8:7 | foo |
|
||||
| gen_call_expr.rs:9:5:9:23 | foo::<...>(...) | gen_call_expr.rs:9:5:9:19 | foo::<...> |
|
||||
| gen_call_expr.rs:10:5:10:14 | ...(...) | gen_call_expr.rs:10:5:10:10 | foo[0] |
|
||||
| gen_call_expr.rs:11:5:11:10 | foo(...) | gen_call_expr.rs:11:5:11:7 | foo |
|
||||
| gen_call_expr.rs:12:5:12:20 | ...::Some(...) | gen_call_expr.rs:12:5:12:16 | ...::Some |
|
||||
|
||||
@@ -1,18 +1,15 @@
|
||||
instances
|
||||
| gen_method_call_expr.rs:5:5:5:13 | x.foo(...) |
|
||||
| gen_method_call_expr.rs:6:5:6:25 | x.foo(...) |
|
||||
| gen_method_call_expr.rs:9:5:9:13 | x.foo(...) |
|
||||
| gen_method_call_expr.rs:10:5:10:25 | x.foo(...) |
|
||||
getArgList
|
||||
| gen_method_call_expr.rs:5:5:5:13 | x.foo(...) | gen_method_call_expr.rs:5:10:5:13 | ArgList |
|
||||
| gen_method_call_expr.rs:6:5:6:25 | x.foo(...) | gen_method_call_expr.rs:6:22:6:25 | ArgList |
|
||||
| gen_method_call_expr.rs:9:5:9:13 | x.foo(...) | gen_method_call_expr.rs:9:10:9:13 | ArgList |
|
||||
| gen_method_call_expr.rs:10:5:10:25 | x.foo(...) | gen_method_call_expr.rs:10:22:10:25 | ArgList |
|
||||
getAttr
|
||||
getArg
|
||||
| gen_method_call_expr.rs:5:5:5:13 | x.foo(...) | 0 | gen_method_call_expr.rs:5:11:5:12 | 42 |
|
||||
| gen_method_call_expr.rs:6:5:6:25 | x.foo(...) | 0 | gen_method_call_expr.rs:6:23:6:24 | 42 |
|
||||
getGenericArgList
|
||||
| gen_method_call_expr.rs:6:5:6:25 | x.foo(...) | gen_method_call_expr.rs:6:10:6:21 | <...> |
|
||||
| gen_method_call_expr.rs:10:5:10:25 | x.foo(...) | gen_method_call_expr.rs:10:10:10:21 | <...> |
|
||||
getIdentifier
|
||||
| gen_method_call_expr.rs:5:5:5:13 | x.foo(...) | gen_method_call_expr.rs:5:7:5:9 | foo |
|
||||
| gen_method_call_expr.rs:6:5:6:25 | x.foo(...) | gen_method_call_expr.rs:6:7:6:9 | foo |
|
||||
| gen_method_call_expr.rs:9:5:9:13 | x.foo(...) | gen_method_call_expr.rs:9:7:9:9 | foo |
|
||||
| gen_method_call_expr.rs:10:5:10:25 | x.foo(...) | gen_method_call_expr.rs:10:7:10:9 | foo |
|
||||
getReceiver
|
||||
| gen_method_call_expr.rs:5:5:5:13 | x.foo(...) | gen_method_call_expr.rs:5:5:5:5 | x |
|
||||
| gen_method_call_expr.rs:6:5:6:25 | x.foo(...) | gen_method_call_expr.rs:6:5:6:5 | x |
|
||||
| gen_method_call_expr.rs:9:5:9:13 | x.foo(...) | gen_method_call_expr.rs:9:5:9:5 | x |
|
||||
| gen_method_call_expr.rs:10:5:10:25 | x.foo(...) | gen_method_call_expr.rs:10:5:10:5 | x |
|
||||
|
||||
@@ -1770,7 +1770,7 @@ proc_macro.rs:
|
||||
# 16| getIdentifier(): [NameRef] items
|
||||
# 15| getMatchArmList(): [MatchArmList] MatchArmList
|
||||
# 15| getArm(0): [MatchArm] ... => ...
|
||||
# 15| getExpr(): [CallExpr] ...::RepInterp(...)
|
||||
# 15| getExpr(): [TupleStructExpr] ...::RepInterp(...)
|
||||
# 15| getArgList(): [ArgList] ArgList
|
||||
# 15| getArg(0): [VariableAccess] _x
|
||||
# 15| getPath(): [Path] _x
|
||||
|
||||
@@ -41,6 +41,9 @@ edges
|
||||
| main.rs:73:10:73:10 | [post] b [&ref] | main.rs:74:15:74:15 | b [&ref] | provenance | |
|
||||
| main.rs:73:14:73:23 | source(...) | main.rs:73:10:73:10 | [post] b [&ref] | provenance | |
|
||||
| main.rs:74:15:74:15 | b [&ref] | main.rs:74:14:74:15 | * ... | provenance | MaD:1 |
|
||||
| main.rs:90:11:90:16 | [post] &mut a [&ref] | main.rs:90:16:90:16 | [post] a | provenance | |
|
||||
| main.rs:90:16:90:16 | [post] a | main.rs:91:14:91:14 | a | provenance | |
|
||||
| main.rs:90:21:90:30 | source(...) | main.rs:90:11:90:16 | [post] &mut a [&ref] | provenance | |
|
||||
| main.rs:105:10:105:10 | [post] c [&ref] | main.rs:106:15:106:15 | c [&ref] | provenance | |
|
||||
| main.rs:105:14:105:23 | source(...) | main.rs:105:10:105:10 | [post] c [&ref] | provenance | |
|
||||
| main.rs:106:15:106:15 | c [&ref] | main.rs:106:14:106:15 | * ... | provenance | MaD:1 |
|
||||
@@ -175,6 +178,10 @@ nodes
|
||||
| main.rs:73:14:73:23 | source(...) | semmle.label | source(...) |
|
||||
| main.rs:74:14:74:15 | * ... | semmle.label | * ... |
|
||||
| main.rs:74:15:74:15 | b [&ref] | semmle.label | b [&ref] |
|
||||
| main.rs:90:11:90:16 | [post] &mut a [&ref] | semmle.label | [post] &mut a [&ref] |
|
||||
| main.rs:90:16:90:16 | [post] a | semmle.label | [post] a |
|
||||
| main.rs:90:21:90:30 | source(...) | semmle.label | source(...) |
|
||||
| main.rs:91:14:91:14 | a | semmle.label | a |
|
||||
| main.rs:105:10:105:10 | [post] c [&ref] | semmle.label | [post] c [&ref] |
|
||||
| main.rs:105:14:105:23 | source(...) | semmle.label | source(...) |
|
||||
| main.rs:106:14:106:15 | * ... | semmle.label | * ... |
|
||||
@@ -288,6 +295,7 @@ testFailures
|
||||
| main.rs:53:14:53:15 | * ... | main.rs:51:17:51:26 | source(...) | main.rs:53:14:53:15 | * ... | $@ | main.rs:51:17:51:26 | source(...) | source(...) |
|
||||
| main.rs:59:33:59:34 | * ... | main.rs:57:22:57:31 | source(...) | main.rs:59:33:59:34 | * ... | $@ | main.rs:57:22:57:31 | source(...) | source(...) |
|
||||
| main.rs:74:14:74:15 | * ... | main.rs:73:14:73:23 | source(...) | main.rs:74:14:74:15 | * ... | $@ | main.rs:73:14:73:23 | source(...) | source(...) |
|
||||
| main.rs:91:14:91:14 | a | main.rs:90:21:90:30 | source(...) | main.rs:91:14:91:14 | a | $@ | main.rs:90:21:90:30 | source(...) | source(...) |
|
||||
| main.rs:106:14:106:15 | * ... | main.rs:105:14:105:23 | source(...) | main.rs:106:14:106:15 | * ... | $@ | main.rs:105:14:105:23 | source(...) | source(...) |
|
||||
| main.rs:113:14:113:15 | * ... | main.rs:112:25:112:34 | source(...) | main.rs:113:14:113:15 | * ... | $@ | main.rs:112:25:112:34 | source(...) | source(...) |
|
||||
| main.rs:175:14:175:34 | my_number.to_number() | main.rs:174:44:174:53 | source(...) | main.rs:175:14:175:34 | my_number.to_number() | $@ | main.rs:174:44:174:53 | source(...) | source(...) |
|
||||
|
||||
@@ -88,7 +88,7 @@ mod intraprocedural_mutable_borrows {
|
||||
let mut a = 1;
|
||||
sink(a);
|
||||
*(&mut a) = source(87);
|
||||
sink(a); // $ MISSING: hasValueFlow=87
|
||||
sink(a); // $ hasValueFlow=87
|
||||
}
|
||||
|
||||
pub fn clear_through_borrow() {
|
||||
|
||||
Reference in New Issue
Block a user