CodeQL library for C/C++

Member predicate FileWrite::getSourceConvChar

Gets the conversion character for this write, if it exists and is known. For example in the following code the write of value1 has conversion character "s", whereas the write of value2 has no conversion specifier.

fprintf(file, "%s", value1);
stream << value2;
string getSourceConvChar(Expr source)