Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/Basic/
H A DBuiltins.cpp176 bool Builtin::Context::isLike(unsigned ID, unsigned &FormatIdx, in isLike() argument
195 FormatIdx = ::strtol(Like, nullptr, 10); in isLike()
199 bool Builtin::Context::isPrintfLike(unsigned ID, unsigned &FormatIdx, in isPrintfLike() argument
201 return isLike(ID, FormatIdx, HasVAListArg, "pP"); in isPrintfLike()
204 bool Builtin::Context::isScanfLike(unsigned ID, unsigned &FormatIdx, in isScanfLike() argument
206 return isLike(ID, FormatIdx, HasVAListArg, "sS"); in isScanfLike()
/freebsd-14.2/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);
287 bool isLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg,
H A DAttr.td1632 let Args = [IdentifierArgument<"Type">, IntArgument<"FormatIdx">,
1640 let Args = [ParamIdxArgument<"FormatIdx">];
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp7168 FSI->FormatIdx = Format->getFormatIdx() - 1; in getFormatStringInfo()
7176 if(FSI->FormatIdx == 0) in getFormatStringInfo()
7178 --FSI->FormatIdx; in getFormatStringInfo()
7225 Idx = FSI.FormatIdx; in GetFormatNSStringIdx()
9679 unsigned FormatIdx = i; in SemaBuiltinOSLogFormat() local
9711 Args, FAPK_Variadic, FormatIdx, FirstDataArg, FST_OSLog, in SemaBuiltinOSLogFormat()
10642 if (PV->getFunctionScopeIndex() == CallerFSI.FormatIdx && in checkFormatStringExpr()
10854 return CheckFormatArguments(Args, FSI.ArgPassingKind, FSI.FormatIdx, in CheckFormatArguments()
10957 unsigned FormatIdx; member in __anon1d690be71f11::CheckFormatHandler
10978 ArgPassingKind(APK), Args(Args), FormatIdx(formatIdx), in CheckFormatHandler()
[all …]
H A DSemaDecl.cpp16673 unsigned FormatIdx; in AddKnownFunctionAttributes() local
16675 if (Context.BuiltinInfo.isPrintfLike(BuiltinID, FormatIdx, HasVAListArg)) { in AddKnownFunctionAttributes()
16679 if (FormatIdx < NumParams && // NumParams may be 0 (e.g. vfprintf) in AddKnownFunctionAttributes()
16680 FD->getParamDecl(FormatIdx)->getType()->isObjCObjectPointerType()) in AddKnownFunctionAttributes()
16684 FormatIdx+1, in AddKnownFunctionAttributes()
16685 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
16689 if (Context.BuiltinInfo.isScanfLike(BuiltinID, FormatIdx, in AddKnownFunctionAttributes()
16694 FormatIdx+1, in AddKnownFunctionAttributes()
16695 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
H A DSemaDeclAttr.cpp3951 IdentifierInfo *Format, int FormatIdx, in mergeFormatAttr() argument
3956 F->getFormatIdx() == FormatIdx && in mergeFormatAttr()
3966 return ::new (Context) FormatAttr(Context, CI, Format, FormatIdx, FirstArg); in mergeFormatAttr()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h3723 IdentifierInfo *Format, int FormatIdx,
13837 unsigned FormatIdx; member