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

Member predicate ScanfFormatLiteral::getFormat

Gets the format string itself, transformed as follows:

  • ‘%%’ is replaced with ‘_’ (this avoids accidentally processing them as format specifiers)
  • ‘%*’ is replaced with ‘_’ (%*any is matched but not assigned to an argument)
string getFormat()