Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/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.td1512 let Args = [IdentifierArgument<"Type">, IntArgument<"FormatIdx">,
1520 let Args = [ParamIdxArgument<"FormatIdx">];
/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaChecking.cpp5617 FSI->FormatIdx = Format->getFormatIdx() - 1; in getFormatStringInfo()
5625 if(FSI->FormatIdx == 0) in getFormatStringInfo()
5627 --FSI->FormatIdx; in getFormatStringInfo()
5674 Idx = FSI.FormatIdx; in GetFormatNSStringIdx()
7927 unsigned FormatIdx = i; in SemaBuiltinOSLogFormat() local
7959 Args, FAPK_Variadic, FormatIdx, FirstDataArg, FST_OSLog, in SemaBuiltinOSLogFormat()
8913 if (PV->getFunctionScopeIndex() == CallerFSI.FormatIdx && in checkFormatStringExpr()
9123 return CheckFormatArguments(Args, FSI.ArgPassingKind, FSI.FormatIdx, in CheckFormatArguments()
9227 unsigned FormatIdx; member in __anon3d5b5bfe1d11::CheckFormatHandler
9248 ArgPassingKind(APK), Args(Args), FormatIdx(formatIdx), in CheckFormatHandler()
[all …]
H A DSemaDecl.cpp16071 unsigned FormatIdx; in AddKnownFunctionAttributes() local
16073 if (Context.BuiltinInfo.isPrintfLike(BuiltinID, FormatIdx, HasVAListArg)) { in AddKnownFunctionAttributes()
16077 if (FormatIdx < NumParams && // NumParams may be 0 (e.g. vfprintf) in AddKnownFunctionAttributes()
16078 FD->getParamDecl(FormatIdx)->getType()->isObjCObjectPointerType()) in AddKnownFunctionAttributes()
16082 FormatIdx+1, in AddKnownFunctionAttributes()
16083 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
16087 if (Context.BuiltinInfo.isScanfLike(BuiltinID, FormatIdx, in AddKnownFunctionAttributes()
16092 FormatIdx+1, in AddKnownFunctionAttributes()
16093 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
H A DSemaDeclAttr.cpp3899 IdentifierInfo *Format, int FormatIdx, in mergeFormatAttr() argument
3904 F->getFormatIdx() == FormatIdx && in mergeFormatAttr()
3914 return ::new (Context) FormatAttr(Context, CI, Format, FormatIdx, FirstArg); in mergeFormatAttr()
/openbsd/gnu/llvm/clang/include/clang/Sema/
H A DSema.h3655 IdentifierInfo *Format, int FormatIdx,
13408 unsigned FormatIdx; member