Skip to content

Commit eea6949

Browse files
committed
Rust: Restrict macro call stats in DatabaseQualityDiagnostics to extracted files (.fromSource). This is already the case in other places we measure this.
1 parent ab78f2b commit eea6949

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/ql/src/queries/telemetry/DatabaseQuality.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ module CallTargetStats implements StatsSig {
3030
}
3131

3232
module MacroCallTargetStats implements StatsSig {
33-
int getNumberOfOk() { result = count(MacroCall c | c.hasMacroCallExpansion()) }
33+
int getNumberOfOk() { result = count(MacroCall c | c.fromSource() and c.hasMacroCallExpansion()) }
3434

35-
additional predicate isNotOkCall(MacroCall c) { not c.hasMacroCallExpansion() }
35+
additional predicate isNotOkCall(MacroCall c) { c.fromSource() and not c.hasMacroCallExpansion() }
3636

3737
int getNumberOfNotOk() { result = count(MacroCall c | isNotOkCall(c)) }
3838

0 commit comments

Comments
 (0)