CodeQL library for C/C++
codeql/cpp-all 1.3.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()