Skip to content

Commit 7279cc4

Browse files
committed
Rust: Add resolved macros to rust/summary/summary-stats.
1 parent 39b2d2c commit 7279cc4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@ where
3737
key = "Inconsistencies - CFG" and value = getTotalCfgInconsistencies()
3838
or
3939
key = "Inconsistencies - data flow" and value = getTotalDataFlowInconsistencies()
40+
or
41+
key = "Macro calls - total" and value = count(MacroCall mc)
42+
or
43+
key = "Macro calls - resolved" and value = count(MacroCall mc | mc.hasExpanded())
4044
select key, value

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
| Inconsistencies - data flow | 7 |
1111
| Lines of code extracted | 59 |
1212
| Lines of user code extracted | 59 |
13+
| Macro calls - resolved | 8 |
14+
| Macro calls - total | 8 |

0 commit comments

Comments
 (0)