Merge pull request #139 from geoffw0/function-wrappers

CPP: Make FunctionWithWrappers `toCause` work on builtins.
This commit is contained in:
Jonas Jensen
2018-09-04 13:36:33 +02:00
committed by GitHub

View File

@@ -3,9 +3,14 @@ import PrintfLike
private import TaintTracking
private
bindingset[index]
string toCause(Function func, int index)
{
result = func.getQualifiedName() + "(" + func.getParameter(index).getName() + ")"
result = func.getQualifiedName() + "(" + func.getParameter(index).getName() + ")" or
(
not exists(func.getParameter(index).getName()) and
result = func.getQualifiedName() + "(arg " + index + ")"
)
}
/**