We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 068c57a commit c8d0384Copy full SHA for c8d0384
3 files changed
ql/test/callgraph/Foo.qll
@@ -0,0 +1,15 @@
1
+import ql
2
+
3
+predicate foo() { none() }
4
5
+query predicate test() { foo() }
6
7
+class Foo extends AstNode {
8
+ predicate bar() { none() }
9
10
+ predicate baz() { bar() }
11
+}
12
13
+class Sub extends Foo {
14
+ override predicate baz() { super.baz() }
15
ql/test/callgraph/callgraph.expected
@@ -0,0 +1,3 @@
+| Foo.qll:5:26:5:30 | PredicateCall | Foo.qll:3:1:3:26 | foo |
+| Foo.qll:10:21:10:25 | PredicateCall | Foo.qll:8:3:8:28 | ClassPredicate |
+| Foo.qll:14:30:14:40 | MemberCall | Foo.qll:10:3:10:27 | ClassPredicate |
ql/test/callgraph/callgraph.ql
+query AstNode getTarget(Call call) { result = call.getTarget().getDeclaration() }
0 commit comments