Shared: Do not use @kind graph for CFG test output

This commit is contained in:
Tom Hvitved
2024-09-19 14:58:46 +02:00
parent ec74595671
commit 16813240ae
9 changed files with 9891 additions and 29370 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,20 +1,8 @@
/**
* @kind graph
*/
import swift
import codeql.swift.controlflow.ControlFlowGraph
class MyRelevantNode extends ControlFlowNode {
MyRelevantNode() { this.getScope().getLocation().getFile().getName().matches("%swift/ql/test%") }
private AstNode asAstNode() { result = this.getAstNode().asAstNode() }
string getOrderDisambiguation() {
result = concat([this.asAstNode().getAPrimaryQlClass(), this.asAstNode().toString()], ",")
or
not exists(this.asAstNode()) and result = ""
}
}
import codeql.swift.controlflow.internal.ControlFlowGraphImpl::TestOutput<MyRelevantNode>