mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
31 lines
1.3 KiB
Plaintext
Generated
31 lines
1.3 KiB
Plaintext
Generated
// generated by codegen, do not edit
|
|
import codeql.rust.elements
|
|
import TestUtils
|
|
|
|
from
|
|
MacroCall x, string hasExtendedCanonicalPath, string hasCrateOrigin,
|
|
string hasAttributeMacroExpansion, int getNumberOfAttrs, string hasPath, string hasTokenTree,
|
|
string hasMacroCallExpansion
|
|
where
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
(
|
|
if x.hasExtendedCanonicalPath()
|
|
then hasExtendedCanonicalPath = "yes"
|
|
else hasExtendedCanonicalPath = "no"
|
|
) and
|
|
(if x.hasCrateOrigin() then hasCrateOrigin = "yes" else hasCrateOrigin = "no") and
|
|
(
|
|
if x.hasAttributeMacroExpansion()
|
|
then hasAttributeMacroExpansion = "yes"
|
|
else hasAttributeMacroExpansion = "no"
|
|
) and
|
|
getNumberOfAttrs = x.getNumberOfAttrs() and
|
|
(if x.hasPath() then hasPath = "yes" else hasPath = "no") and
|
|
(if x.hasTokenTree() then hasTokenTree = "yes" else hasTokenTree = "no") and
|
|
if x.hasMacroCallExpansion() then hasMacroCallExpansion = "yes" else hasMacroCallExpansion = "no"
|
|
select x, "hasExtendedCanonicalPath:", hasExtendedCanonicalPath, "hasCrateOrigin:", hasCrateOrigin,
|
|
"hasAttributeMacroExpansion:", hasAttributeMacroExpansion, "getNumberOfAttrs:", getNumberOfAttrs,
|
|
"hasPath:", hasPath, "hasTokenTree:", hasTokenTree, "hasMacroCallExpansion:",
|
|
hasMacroCallExpansion
|