Files
codeql/swift/ql/integration-tests/posix/deduplication/Decls.ql
Cornelius Riemenschneider a92a845719 Swift: Move all integration tests.
We are no longer bound to the platform-specific directories,
so simplify the test organization.
If you don't want this change, just skip merging this PR. It's purely optional.
2024-08-28 10:47:17 +02:00

16 lines
336 B
Plaintext

import swift
import Relevant
from Decl d, string type
where
relevant(d) and
(
not exists(d.(ValueDecl).getInterfaceType()) and type = "-"
or
exists(Type t |
t = d.(ValueDecl).getInterfaceType() and
type = t.toString() + " [" + t.getPrimaryQlClasses() + "]"
)
)
select d, d.getPrimaryQlClasses(), type