Lines Matching refs:FExpr
7477 const StringLiteral *FExpr; member in __anonfebdc2651211::FormatStringLiteral
7482 : FExpr(fexpr), Offset(Offset) {} in FormatStringLiteral()
7485 return FExpr->getString().drop_front(Offset); in getString()
7489 return FExpr->getByteLength() - getCharByteWidth() * Offset; in getByteLength()
7492 unsigned getLength() const { return FExpr->getLength() - Offset; } in getLength()
7493 unsigned getCharByteWidth() const { return FExpr->getCharByteWidth(); } in getCharByteWidth()
7495 StringLiteral::StringKind getKind() const { return FExpr->getKind(); } in getKind()
7497 QualType getType() const { return FExpr->getType(); } in getType()
7499 bool isAscii() const { return FExpr->isAscii(); } in isAscii()
7500 bool isWide() const { return FExpr->isWide(); } in isWide()
7501 bool isUTF8() const { return FExpr->isUTF8(); } in isUTF8()
7502 bool isUTF16() const { return FExpr->isUTF16(); } in isUTF16()
7503 bool isUTF32() const { return FExpr->isUTF32(); } in isUTF32()
7504 bool isPascal() const { return FExpr->isPascal(); } in isPascal()
7510 return FExpr->getLocationOfByte(ByteNo + Offset, SM, Features, Target, in getLocationOfByte()
7515 return FExpr->getBeginLoc().getLocWithOffset(Offset); in getBeginLoc()
7518 SourceLocation getEndLoc() const LLVM_READONLY { return FExpr->getEndLoc(); } in getEndLoc()
7523 static void CheckFormatString(Sema &S, const FormatStringLiteral *FExpr,
7967 const FormatStringLiteral *FExpr; member in __anonfebdc2651311::CheckFormatHandler
7993 : S(s), FExpr(fexpr), OrigFormatExpr(origFormatExpr), FSType(type), in CheckFormatHandler()
8084 return FExpr->getLocationOfByte(x - Beg, S.getSourceManager(), in getLocationOfByte()
9510 static void CheckFormatString(Sema &S, const FormatStringLiteral *FExpr, in CheckFormatString() argument
9522 if (!FExpr->isAscii() && !FExpr->isUTF8()) { in CheckFormatString()
9525 S.PDiag(diag::warn_format_string_is_wide_literal), FExpr->getBeginLoc(), in CheckFormatString()
9531 StringRef StrRef = FExpr->getString(); in CheckFormatString()
9535 S.Context.getAsConstantArrayType(FExpr->getType()); in CheckFormatString()
9553 FExpr->getBeginLoc(), in CheckFormatString()
9562 S.PDiag(diag::warn_empty_format_string), FExpr->getBeginLoc(), in CheckFormatString()
9571 S, FExpr, OrigFormatExpr, Type, firstDataArg, numDataArgs, in CheckFormatString()
9582 CheckScanfHandler H(S, FExpr, OrigFormatExpr, Type, firstDataArg, in CheckFormatString()
9593 bool Sema::FormatStringHasSArg(const StringLiteral *FExpr) { in FormatStringHasSArg() argument
9595 StringRef StrRef = FExpr->getString(); in FormatStringHasSArg()
9598 const ConstantArrayType *T = Context.getAsConstantArrayType(FExpr->getType()); in FormatStringHasSArg()