Lines Matching refs:FExpr

5594   const StringLiteral *FExpr;  member in __anon28c3fbb11a11::FormatStringLiteral
5599 : FExpr(fexpr), Offset(Offset) {} in FormatStringLiteral()
5602 return FExpr->getString().drop_front(Offset); in getString()
5606 return FExpr->getByteLength() - getCharByteWidth() * Offset; in getByteLength()
5609 unsigned getLength() const { return FExpr->getLength() - Offset; } in getLength()
5610 unsigned getCharByteWidth() const { return FExpr->getCharByteWidth(); } in getCharByteWidth()
5612 StringLiteralKind getKind() const { return FExpr->getKind(); } in getKind()
5614 QualType getType() const { return FExpr->getType(); } in getType()
5616 bool isAscii() const { return FExpr->isOrdinary(); } in isAscii()
5617 bool isWide() const { return FExpr->isWide(); } in isWide()
5618 bool isUTF8() const { return FExpr->isUTF8(); } in isUTF8()
5619 bool isUTF16() const { return FExpr->isUTF16(); } in isUTF16()
5620 bool isUTF32() const { return FExpr->isUTF32(); } in isUTF32()
5621 bool isPascal() const { return FExpr->isPascal(); } in isPascal()
5627 return FExpr->getLocationOfByte(ByteNo + Offset, SM, Features, Target, in getLocationOfByte()
5632 return FExpr->getBeginLoc().getLocWithOffset(Offset); in getBeginLoc()
5635 SourceLocation getEndLoc() const LLVM_READONLY { return FExpr->getEndLoc(); } in getEndLoc()
5641 Sema &S, const FormatStringLiteral *FExpr, const Expr *OrigFormatExpr,
6147 const FormatStringLiteral *FExpr; member in __anon28c3fbb11b11::CheckFormatHandler
6174 : S(s), FExpr(fexpr), OrigFormatExpr(origFormatExpr), FSType(type), in CheckFormatHandler()
6265 return FExpr->getLocationOfByte(x - Beg, S.getSourceManager(), in getLocationOfByte()
7810 Sema &S, const FormatStringLiteral *FExpr, const Expr *OrigFormatExpr, in CheckFormatString() argument
7817 if (!FExpr->isAscii() && !FExpr->isUTF8()) { in CheckFormatString()
7820 S.PDiag(diag::warn_format_string_is_wide_literal), FExpr->getBeginLoc(), in CheckFormatString()
7826 StringRef StrRef = FExpr->getString(); in CheckFormatString()
7830 S.Context.getAsConstantArrayType(FExpr->getType()); in CheckFormatString()
7847 FExpr->getBeginLoc(), in CheckFormatString()
7856 S.PDiag(diag::warn_empty_format_string), FExpr->getBeginLoc(), in CheckFormatString()
7865 S, FExpr, OrigFormatExpr, Type, firstDataArg, numDataArgs, in CheckFormatString()
7875 CheckScanfHandler H(S, FExpr, OrigFormatExpr, Type, firstDataArg, in CheckFormatString()
7885 bool Sema::FormatStringHasSArg(const StringLiteral *FExpr) { in FormatStringHasSArg() argument
7887 StringRef StrRef = FExpr->getString(); in FormatStringHasSArg()
7890 const ConstantArrayType *T = Context.getAsConstantArrayType(FExpr->getType()); in FormatStringHasSArg()