Lines Matching defs:Format
39 #include "llvm/Support/Format.h"
1875 bool Sema::getFormatStringInfo(const FormatAttr *Format, bool IsCXXMember,
1877 FSI->HasVAListArg = Format->getFirstArg() == 0;
1878 FSI->FormatIdx = Format->getFormatIdx() - 1;
1879 FSI->FirstDataArg = FSI->HasVAListArg ? 0 : Format->getFirstArg() - 1;
1930 bool Sema::GetFormatNSStringIdx(const FormatAttr *Format, unsigned &Idx) {
1932 if ((GetFormatStringType(Format) == FST_NSString) &&
1933 getFormatStringInfo(Format, false, &FSI)) {
1947 bool Format = false;
1951 Format = true;
1956 Format = true;
1960 if (!Format || NumArgs <= Idx)
4011 Sema::FormatStringType Sema::GetFormatStringType(const FormatAttr *Format) {
4012 return llvm::StringSwitch<FormatStringType>(Format->getType()->getName())
4027 bool Sema::CheckFormatArguments(const FormatAttr *Format,
4034 if (getFormatStringInfo(Format, IsCXXMember, &FSI))
4036 FSI.FirstDataArg, GetFormatStringType(Format),
4063 // Format string can be either ObjC string (e.g. @"%d") or