Lines Matching defs:String
71 /// and the second argument is a non-wide string literal.
85 // Second argument should be a constant string.
508 // Refuse POD arguments that weren't caught by the format string
1298 StringRef String = Literal->getString();
1299 unsigned NumBytes = String.size();
1301 const UTF8 *FromPtr = (const UTF8 *)String.data();
1646 // Determine if an expression is a string literal or constant string.
1648 // format string, we will usually need to emit a warning.
1649 // True string literals are then checked by CheckFormatString.
1665 // dependent. Ideally if the format string cannot be null then
1702 // While __func__, etc., are technically not string literals, they
1711 // const string literals.
1742 // special check to see if the format string is a function parameter
1768 // We can't pass a 'scanf' string to a 'printf' function.
1872 /// Returns true if a format string has been fully checked.
1891 // CHECK: printf/scanf-like function is called with no format string.
1899 // CHECK: format string is not a string literal.
1903 // are string literals: (1) permits the checking of format strings by
1905 // many format string exploits.
1907 // Format string can be either ObjC string (e.g. @"%d") or
1908 // C string (e.g. "%d")
1909 // ObjC string uses the same format specifiers as C string, so we can use
1910 // the same format string checking logic for both ObjC and C strings.
1915 // Literal format string found, check done!
1919 // so it is safe to pass a non-literal string.
1923 // Do not emit diag when the string param is a macro expansion and the
1926 // which are usually used in place of NS and CF string literals.
1952 const char *Beg; // Start of format string.
2207 // format conversions in the format string?
2244 // the format string after this point, however, as we will like just get
2295 /// \brief If the format string is not within the funcion call, emit a note
2296 /// so that the function call and string are in diagnostic messages.
2298 /// \param InFunctionCall if true, the format string is within the function
2300 /// extra note will be emitted pointing to location of the format string.
2302 /// \param ArgumentExpr the expression that is passed as the format string
2314 /// \param IsStringLocation if true, Loc points to the format string should be
2318 /// \param StringRange some or all of the string to highlight. This is
2321 /// \param FixIt optional fix it hint for the format string.
2353 //===--- CHECK: Printf format string checking ------------------------------===//
2550 // Check if a (w)string was passed when a (w)char* was needed, and offer a
2753 // string has type 'char [6]' is probably more confusing than 'char *'.
2828 // Get the fix string from the fixed format specifier
2853 // add a cast to the recommended type (and correct the format string
2944 //===--- CHECK: Scanf format string checking ------------------------------===//
3078 // Get the fix string from the fixed format specifier.
3114 // CHECK: is the format string a wide literal?
3123 // Str - The format string. NOTE: this is NOT null-terminated!
3129 // CHECK: empty format string?
4666 std::string PrettyValue = Value.toString(10);
4667 std::string PrettyTrunc = TruncatedValue.toString(10);
4745 std::string PrettyPrintInRange(const llvm::APSInt &Value, IntRange Range) {
4814 // Warn on string literal to bool. Checks for string literals in logical
4984 std::string PrettySourceValue = Value.toString(10);
4985 std::string PrettyTargetValue = PrettyPrintInRange(Value, TargetRange);
5166 // Ignore checking string literals that are in logical operators.