Skip to content

Commit 1d8f291

Browse files
committed
Rust: Include getAttributeMacroExpansion in isInMacroExpansion
1 parent 4be995d commit 1d8f291

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/ql/lib/codeql/rust/elements/internal/MacroCallImpl.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ module Impl {
1919
or
2020
n = root.(Adt).getDeriveMacroExpansion(_)
2121
or
22+
n = root.(Item).getAttributeMacroExpansion()
23+
or
2224
isInMacroExpansion(root, n.getParentNode())
2325
}
2426

0 commit comments

Comments
 (0)