Home
last modified time | relevance | path

Searched refs:FormatIdx (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DBuiltins.cpp179 bool Builtin::Context::isLike(unsigned ID, unsigned &FormatIdx, in isLike() argument
198 FormatIdx = ::strtol(Like, nullptr, 10); in isLike()
202 bool Builtin::Context::isPrintfLike(unsigned ID, unsigned &FormatIdx, in isPrintfLike() argument
204 return isLike(ID, FormatIdx, HasVAListArg, "pP"); in isPrintfLike()
207 bool Builtin::Context::isScanfLike(unsigned ID, unsigned &FormatIdx, in isScanfLike() argument
209 return isLike(ID, FormatIdx, HasVAListArg, "sS"); in isScanfLike()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DBuiltins.h229 bool isPrintfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
234 bool isScanfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
292 bool isLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg,
H A DAttr.td1742 let Args = [IdentifierArgument<"Type">, IntArgument<"FormatIdx">,
1750 let Args = [ParamIdxArgument<"FormatIdx">];
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp2953 FSI->FormatIdx = Format->getFormatIdx() - 1; in getFormatStringInfo()
2961 if(FSI->FormatIdx == 0) in getFormatStringInfo()
2963 --FSI->FormatIdx; in getFormatStringInfo()
5257 unsigned FormatIdx = i; in BuiltinOSLogFormat() local
5289 Args, FAPK_Variadic, FormatIdx, FirstDataArg, FST_OSLog, in BuiltinOSLogFormat()
5843 if (PV->getFunctionScopeIndex() == CallerFSI.FormatIdx && in checkFormatStringExpr()
6052 return CheckFormatArguments(Args, FSI.ArgPassingKind, FSI.FormatIdx, in CheckFormatArguments()
6155 unsigned FormatIdx; member in __anon28c3fbb11b11::CheckFormatHandler
6176 ArgPassingKind(APK), Args(Args), FormatIdx(formatIdx), in CheckFormatHandler()
6545 EmitFormatDiagnostic(S, inFunctionCall, Args[FormatIdx], PDiag, in EmitFormatDiagnostic()
H A DSemaDecl.cpp16452 unsigned FormatIdx; in AddKnownFunctionAttributes() local
16454 if (Context.BuiltinInfo.isPrintfLike(BuiltinID, FormatIdx, HasVAListArg)) { in AddKnownFunctionAttributes()
16458 if (FormatIdx < NumParams && // NumParams may be 0 (e.g. vfprintf) in AddKnownFunctionAttributes()
16459 FD->getParamDecl(FormatIdx)->getType()->isObjCObjectPointerType()) in AddKnownFunctionAttributes()
16463 FormatIdx+1, in AddKnownFunctionAttributes()
16464 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
16468 if (Context.BuiltinInfo.isScanfLike(BuiltinID, FormatIdx, in AddKnownFunctionAttributes()
16473 FormatIdx+1, in AddKnownFunctionAttributes()
16474 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
H A DSemaObjC.cpp2262 Idx = FSI.FormatIdx; in GetFormatNSStringIdx()
H A DSemaDeclAttr.cpp3475 IdentifierInfo *Format, int FormatIdx, in mergeFormatAttr() argument
3480 F->getFormatIdx() == FormatIdx && in mergeFormatAttr()
3490 return ::new (Context) FormatAttr(Context, CI, Format, FormatIdx, FirstArg); in mergeFormatAttr()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h2187 unsigned FormatIdx; member
4548 IdentifierInfo *Format, int FormatIdx,