mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Implement suggestion from review.
This commit is contained in:
@@ -49,12 +49,12 @@ module MacroCallTargetStats implements StatsSig {
|
||||
result = count(MacroCall c | c.getFile() instanceof RelevantFile and c.hasMacroCallExpansion())
|
||||
}
|
||||
|
||||
additional predicate isNotOkCall(MacroCall c) { not c.hasMacroCallExpansion() }
|
||||
|
||||
int getNumberOfNotOk() {
|
||||
result = count(MacroCall c | c.getFile() instanceof RelevantFile and isNotOkCall(c))
|
||||
additional predicate isNotOkCall(MacroCall c) {
|
||||
c.getFile() instanceof RelevantFile and not c.hasMacroCallExpansion()
|
||||
}
|
||||
|
||||
int getNumberOfNotOk() { result = count(MacroCall c | isNotOkCall(c)) }
|
||||
|
||||
string getOkText() { result = "macro calls with call target" }
|
||||
|
||||
string getNotOkText() { result = "macro calls with missing call target" }
|
||||
|
||||
Reference in New Issue
Block a user