CodeQL library for Swift
codeql/swift-all 6.2.2 (changelog, source)
Search

Module StringFormat

Provides classes and predicates for reasoning about string formatting.

Import path

import codeql.swift.StringFormat

Imports

swift

Top-level import for the Swift language pack

Classes

FormattingFunction

A function that takes a printf style format argument.

FormattingFunctionCall

A call to a function that takes a printf style format argument.

LocalizedStringWithFormat

The localizedStringWithFormat method of String, NSString and NSMutableString.

NsExceptionRaise

The NSException.init and NSException.raise methods.

NsLog

The functions NSLog and NSLogv.

PrintfFormat

A function that appears to be an imported C printf variant.

StringInitWithFormat

An initializer for String, NSString or NSMutableString that takes a printf style format argument.

StringMethodWithFormat

A method that appends a formatted string.