mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Rust: Make the two cases read more similarly.
This commit is contained in:
@@ -41,11 +41,10 @@ class PathElement = AstNode;
|
||||
|
||||
query predicate edges(PathElement pred, PathElement succ) {
|
||||
// starting edge (`#[ctor]` / `#[dtor]` attribute to call)
|
||||
exists(CtorAttr ctor, Function f, CallExprBase call |
|
||||
exists(CtorAttr ctor, Function f |
|
||||
f.getAnAttr() = ctor and
|
||||
call.getEnclosingCallable() = f and
|
||||
pred = ctor and
|
||||
succ = call
|
||||
succ.(CallExprBase).getEnclosingCallable() = f
|
||||
)
|
||||
or
|
||||
// transitive edge (call to call)
|
||||
|
||||
Reference in New Issue
Block a user