Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rust/ql/src/queries/telemetry/DatabaseQuality.qll
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ module CallTargetStats implements StatsSig {
}

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

additional predicate isNotOkCall(MacroCall c) { not c.hasMacroCallExpansion() }
additional predicate isNotOkCall(MacroCall c) { c.fromSource() and not c.hasMacroCallExpansion() }

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

Expand Down