Skip to content

Commit

Permalink
Rust: Add rust/diagnostics/unresolved-macro-calls diagnostic query.
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffw0 committed Nov 8, 2024
1 parent 0d1bd8a commit 04926df
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rust/ql/src/queries/diagnostics/UnresolvedMacroCalls.ql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* @name Unresolved Macro Calls
* @description List all macro calls that were not resolved to a target.
* @id rust/diagnostics/unresolved-macro-calls
*/

import rust

from MacroCall mc
where not mc.hasExpanded()
select mc, "Macro call was not resolved to a target."
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
| my_macro.rs:17:9:17:27 | MacroCall | Macro call was not resolved to a target. |
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
queries/diagnostics/UnresolvedMacroCalls.ql

0 comments on commit 04926df

Please sign in to comment.