Skip to content

Commit ede72b2

Browse files
committed
Rust: Add unresolved macro calls count as well.
1 parent f827ad8 commit ede72b2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

rust/ql/src/queries/summary/SummaryStats.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ where
4141
key = "Macro calls - total" and value = count(MacroCall mc)
4242
or
4343
key = "Macro calls - resolved" and value = count(MacroCall mc | mc.hasExpanded())
44+
or
45+
key = "Macro calls - unresolved" and value = count(MacroCall mc | not mc.hasExpanded())
4446
select key, value order by key

rust/ql/test/query-tests/diagnostics/SummaryStats.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
| Lines of user code extracted | 60 |
1313
| Macro calls - resolved | 8 |
1414
| Macro calls - total | 9 |
15+
| Macro calls - unresolved | 1 |

0 commit comments

Comments
 (0)