Lines Matching refs:FExpr
10393 const StringLiteral *FExpr; member in __anon1d690be71e11::FormatStringLiteral
10398 : FExpr(fexpr), Offset(Offset) {} in FormatStringLiteral()
10401 return FExpr->getString().drop_front(Offset); in getString()
10405 return FExpr->getByteLength() - getCharByteWidth() * Offset; in getByteLength()
10408 unsigned getLength() const { return FExpr->getLength() - Offset; } in getLength()
10409 unsigned getCharByteWidth() const { return FExpr->getCharByteWidth(); } in getCharByteWidth()
10411 StringLiteralKind getKind() const { return FExpr->getKind(); } in getKind()
10413 QualType getType() const { return FExpr->getType(); } in getType()
10415 bool isAscii() const { return FExpr->isOrdinary(); } in isAscii()
10416 bool isWide() const { return FExpr->isWide(); } in isWide()
10417 bool isUTF8() const { return FExpr->isUTF8(); } in isUTF8()
10418 bool isUTF16() const { return FExpr->isUTF16(); } in isUTF16()
10419 bool isUTF32() const { return FExpr->isUTF32(); } in isUTF32()
10420 bool isPascal() const { return FExpr->isPascal(); } in isPascal()
10426 return FExpr->getLocationOfByte(ByteNo + Offset, SM, Features, Target, in getLocationOfByte()
10431 return FExpr->getBeginLoc().getLocWithOffset(Offset); in getBeginLoc()
10434 SourceLocation getEndLoc() const LLVM_READONLY { return FExpr->getEndLoc(); } in getEndLoc()
10440 Sema &S, const FormatStringLiteral *FExpr, const Expr *OrigFormatExpr,
10949 const FormatStringLiteral *FExpr; member in __anon1d690be71f11::CheckFormatHandler
10976 : S(s), FExpr(fexpr), OrigFormatExpr(origFormatExpr), FSType(type), in CheckFormatHandler()
11067 return FExpr->getLocationOfByte(x - Beg, S.getSourceManager(), in getLocationOfByte()
12567 Sema &S, const FormatStringLiteral *FExpr, const Expr *OrigFormatExpr, in CheckFormatString() argument
12574 if (!FExpr->isAscii() && !FExpr->isUTF8()) { in CheckFormatString()
12577 S.PDiag(diag::warn_format_string_is_wide_literal), FExpr->getBeginLoc(), in CheckFormatString()
12583 StringRef StrRef = FExpr->getString(); in CheckFormatString()
12587 S.Context.getAsConstantArrayType(FExpr->getType()); in CheckFormatString()
12604 FExpr->getBeginLoc(), in CheckFormatString()
12613 S.PDiag(diag::warn_empty_format_string), FExpr->getBeginLoc(), in CheckFormatString()
12622 S, FExpr, OrigFormatExpr, Type, firstDataArg, numDataArgs, in CheckFormatString()
12632 CheckScanfHandler H(S, FExpr, OrigFormatExpr, Type, firstDataArg, in CheckFormatString()
12642 bool Sema::FormatStringHasSArg(const StringLiteral *FExpr) { in FormatStringHasSArg() argument
12644 StringRef StrRef = FExpr->getString(); in FormatStringHasSArg()
12647 const ConstantArrayType *T = Context.getAsConstantArrayType(FExpr->getType()); in FormatStringHasSArg()