C++: Restrict type.

This commit is contained in:
Geoffrey White
2022-02-07 17:32:52 +00:00
parent 005dfdffdb
commit d1b6871314

View File

@@ -175,7 +175,7 @@ predicate encryptionFunction(Function f)
.regexpMatch(".*(crypt|encode|decode|hash|securezero).*")
}
predicate encryptionType(Type t)
predicate encryptionType(UserType t)
{
t.getName().toLowerCase().regexpMatch(".*(crypt|encode|decode|hash|securezero).*")
}