Files
codeql/rust/ql/test/extractor-tests/generated/ExternBlock/ExternBlock.ql
Geoffrey White 152ae1d29b Rust: Codegen.
2025-08-27 10:42:42 +01:00

29 lines
945 B
Plaintext
Generated

// generated by codegen, do not edit
import codeql.rust.elements
import TestUtils
query predicate instances(ExternBlock x, string isUnsafe__label, string isUnsafe) {
toBeTested(x) and
not x.isUnknown() and
isUnsafe__label = "isUnsafe:" and
if x.isUnsafe() then isUnsafe = "yes" else isUnsafe = "no"
}
query predicate getAttributeMacroExpansion(ExternBlock x, MacroItems getAttributeMacroExpansion) {
toBeTested(x) and
not x.isUnknown() and
getAttributeMacroExpansion = x.getAttributeMacroExpansion()
}
query predicate getAbi(ExternBlock x, Abi getAbi) {
toBeTested(x) and not x.isUnknown() and getAbi = x.getAbi()
}
query predicate getAttr(ExternBlock x, int index, Attr getAttr) {
toBeTested(x) and not x.isUnknown() and getAttr = x.getAttr(index)
}
query predicate getExternItemList(ExternBlock x, ExternItemList getExternItemList) {
toBeTested(x) and not x.isUnknown() and getExternItemList = x.getExternItemList()
}