C++: Make output clearer in cases where the function name is a macro expansion (I've seen this more than once).

This commit is contained in:
Geoffrey White
2023-11-30 14:56:13 +00:00
parent 3c6f318cb2
commit c83cfe4936
2 changed files with 6 additions and 4 deletions

View File

@@ -82,4 +82,6 @@ where
amount = strictcount(Expr e | computeHeuristic(e) and e.getEnclosingFunction() = f) and
amount >= 8 and
exists(f.getFile().getRelativePath()) // exclude library files
select f, "This may be a custom implementation of a cryptographic primitive."
select f,
"This function, \"" + f.getName() +
"\", may be a custom implementation of a cryptographic primitive."