Searched refs:FormatIdx (Results 1 - 6 of 6) sorted by relevance

/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Basic/
H A DBuiltins.cpp102 bool Builtin::Context::isLike(unsigned ID, unsigned &FormatIdx, argument
121 FormatIdx = ::strtol(Like, nullptr, 10);
125 bool Builtin::Context::isPrintfLike(unsigned ID, unsigned &FormatIdx, argument
127 return isLike(ID, FormatIdx, HasVAListArg, "pP");
130 bool Builtin::Context::isScanfLike(unsigned ID, unsigned &FormatIdx, argument
132 return isLike(ID, FormatIdx, HasVAListArg, "sS");
/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/Basic/
H A DBuiltins.h167 bool isPrintfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
172 bool isScanfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
207 bool isLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg,
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaChecking.cpp1164 FSI->FormatIdx = Format->getFormatIdx() - 1;
1171 if(FSI->FormatIdx == 0)
1173 --FSI->FormatIdx;
1220 Idx = FSI.FormatIdx;
3232 return CheckFormatArguments(Args, FSI.HasVAListArg, FSI.FormatIdx,
3309 unsigned FormatIdx; member in class:__anon3979::CheckFormatHandler
3327 Args(Args), FormatIdx(formatIdx),
3646 EmitFormatDiagnostic(S, inFunctionCall, Args[FormatIdx], PDiag,
H A DSemaDecl.cpp11435 unsigned FormatIdx; local
11437 if (Context.BuiltinInfo.isPrintfLike(BuiltinID, FormatIdx, HasVAListArg)) {
11441 if (FormatIdx < NumParams && // NumParams may be 0 (e.g. vfprintf)
11442 FD->getParamDecl(FormatIdx)->getType()->isObjCObjectPointerType())
11446 FormatIdx+1,
11447 HasVAListArg ? 0 : FormatIdx+2,
11451 if (Context.BuiltinInfo.isScanfLike(BuiltinID, FormatIdx,
11456 FormatIdx+1,
11457 HasVAListArg ? 0 : FormatIdx+2,
H A DSemaDeclAttr.cpp2792 IdentifierInfo *Format, int FormatIdx,
2798 F->getFormatIdx() == FormatIdx &&
2808 return ::new (Context) FormatAttr(Range, Context, Format, FormatIdx,
2791 mergeFormatAttr(Decl *D, SourceRange Range, IdentifierInfo *Format, int FormatIdx, int FirstArg, unsigned AttrSpellingListIndex) argument
/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/Sema/
H A DSema.h2129 IdentifierInfo *Format, int FormatIdx,
8966 unsigned FormatIdx; member in struct:clang::Sema::FormatStringInfo

Completed in 248 milliseconds