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."

View File

@@ -1,3 +1,3 @@
| tests_crypto.cpp:11:6:11:18 | encryptString | This may be a custom implementation of a cryptographic primitive. |
| tests_crypto.cpp:30:6:30:14 | MyEncrypt | This may be a custom implementation of a cryptographic primitive. |
| tests_crypto.cpp:83:6:83:18 | init_aes_sbox | This may be a custom implementation of a cryptographic primitive. |
| tests_crypto.cpp:11:6:11:18 | encryptString | This function, "encryptString", may be a custom implementation of a cryptographic primitive. |
| tests_crypto.cpp:30:6:30:14 | MyEncrypt | This function, "MyEncrypt", may be a custom implementation of a cryptographic primitive. |
| tests_crypto.cpp:83:6:83:18 | init_aes_sbox | This function, "init_aes_sbox", may be a custom implementation of a cryptographic primitive. |