mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Exclude skipped files from MacroCallTargetStats.
This commit is contained in:
@@ -31,11 +31,21 @@ module CallTargetStats implements StatsSig {
|
||||
}
|
||||
|
||||
module MacroCallTargetStats implements StatsSig {
|
||||
int getNumberOfOk() { result = count(MacroCall c | c.hasMacroCallExpansion()) }
|
||||
int getNumberOfOk() {
|
||||
result =
|
||||
count(MacroCall c |
|
||||
not c.getFile().(ExtractedFile).isSkippedByCompilation() and c.hasMacroCallExpansion()
|
||||
)
|
||||
}
|
||||
|
||||
additional predicate isNotOkCall(MacroCall c) { not c.hasMacroCallExpansion() }
|
||||
|
||||
int getNumberOfNotOk() { result = count(MacroCall c | isNotOkCall(c)) }
|
||||
int getNumberOfNotOk() {
|
||||
result =
|
||||
count(MacroCall c |
|
||||
not c.getFile().(ExtractedFile).isSkippedByCompilation() and isNotOkCall(c)
|
||||
)
|
||||
}
|
||||
|
||||
string getOkText() { result = "macro calls with call target" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user