Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/lib/Basic/
H A DBuiltins.cpp125 bool Builtin::Context::isLike(unsigned ID, unsigned &FormatIdx, in isLike() argument
144 FormatIdx = ::strtol(Like, nullptr, 10); in isLike()
148 bool Builtin::Context::isPrintfLike(unsigned ID, unsigned &FormatIdx, in isPrintfLike() argument
150 return isLike(ID, FormatIdx, HasVAListArg, "pP"); in isPrintfLike()
153 bool Builtin::Context::isScanfLike(unsigned ID, unsigned &FormatIdx, in isScanfLike() argument
155 return isLike(ID, FormatIdx, HasVAListArg, "sS"); in isScanfLike()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DBuiltins.h191 bool isPrintfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
196 bool isScanfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
243 bool isLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg,
H A DAttr.td1437 let Args = [IdentifierArgument<"Type">, IntArgument<"FormatIdx">,
1445 let Args = [ParamIdxArgument<"FormatIdx">];
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaChecking.cpp4341 FSI->FormatIdx = Format->getFormatIdx() - 1; in getFormatStringInfo()
4348 if(FSI->FormatIdx == 0) in getFormatStringInfo()
4350 --FSI->FormatIdx; in getFormatStringInfo()
4398 Idx = FSI.FormatIdx; in GetFormatNSStringIdx()
6534 unsigned FormatIdx = i; in SemaBuiltinOSLogFormat() local
6566 Args, /*HasVAListArg*/ false, FormatIdx, FirstDataArg, FST_OSLog, in SemaBuiltinOSLogFormat()
7600 return CheckFormatArguments(Args, FSI.HasVAListArg, FSI.FormatIdx, in CheckFormatArguments()
7703 unsigned FormatIdx; member in __anon7fa672bc1411::CheckFormatHandler
7723 HasVAListArg(hasVAListArg), Args(Args), FormatIdx(formatIdx), in CheckFormatHandler()
8092 EmitFormatDiagnostic(S, inFunctionCall, Args[FormatIdx], PDiag, in EmitFormatDiagnostic()
H A DSemaDecl.cpp14998 unsigned FormatIdx; in AddKnownFunctionAttributes() local
15000 if (Context.BuiltinInfo.isPrintfLike(BuiltinID, FormatIdx, HasVAListArg)) { in AddKnownFunctionAttributes()
15004 if (FormatIdx < NumParams && // NumParams may be 0 (e.g. vfprintf) in AddKnownFunctionAttributes()
15005 FD->getParamDecl(FormatIdx)->getType()->isObjCObjectPointerType()) in AddKnownFunctionAttributes()
15009 FormatIdx+1, in AddKnownFunctionAttributes()
15010 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
15014 if (Context.BuiltinInfo.isScanfLike(BuiltinID, FormatIdx, in AddKnownFunctionAttributes()
15019 FormatIdx+1, in AddKnownFunctionAttributes()
15020 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
H A DSemaDeclAttr.cpp3377 IdentifierInfo *Format, int FormatIdx, in mergeFormatAttr() argument
3382 F->getFormatIdx() == FormatIdx && in mergeFormatAttr()
3392 return ::new (Context) FormatAttr(Context, CI, Format, FormatIdx, FirstArg); in mergeFormatAttr()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DSema.h3310 IdentifierInfo *Format, int FormatIdx,
12404 unsigned FormatIdx; member