Skip to content

[rust2cpg] handle empty macro call expansions. - #6226

Merged
xavierpinho merged 1 commit into
masterfrom
xavierp/empty-macro
Aug 26, 2026
Merged

xavierpinho merged 1 commit into
masterfrom
xavierp/empty-macro

Conversation

@xavierpinho

Copy link
Copy Markdown
Contributor

In #6224, I inadvertently silenced unexpanded macro calls - they were no longer Unknown nodes, but rather empty Block nodes without any useful information like code/type. Here we recover that, and only truly unexpanded macros (cf. Nil case) are now reported. Currently, running the proc-macro test emits 2 warnings about the unexpanded foo! - as intended - which should disappear once they are supported.

@xavierpinho
xavierpinho merged commit 93d96ea into master Aug 26, 2026
21 of 24 checks passed
@xavierpinho
xavierpinho deleted the xavierp/empty-macro branch August 26, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants