CodeQL library for C/C++
codeql/cpp-all 0.12.9 (changelog, source)
Search

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)