Home
last modified time | relevance | path

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

/external/clang/lib/Basic/
DBuiltins.cpp92 bool Builtin::Context::isLike(unsigned ID, unsigned &FormatIdx, in isLike() argument
111 FormatIdx = ::strtol(Like, nullptr, 10); in isLike()
115 bool Builtin::Context::isPrintfLike(unsigned ID, unsigned &FormatIdx, in isPrintfLike() argument
117 return isLike(ID, FormatIdx, HasVAListArg, "pP"); in isPrintfLike()
120 bool Builtin::Context::isScanfLike(unsigned ID, unsigned &FormatIdx, in isScanfLike() argument
122 return isLike(ID, FormatIdx, HasVAListArg, "sS"); in isScanfLike()
/external/clang/include/clang/Basic/
DBuiltins.h167 bool isPrintfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
172 bool isScanfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
203 bool isLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg,
DAttr.td776 let Args = [IdentifierArgument<"Type">, IntArgument<"FormatIdx">,
785 let Args = [IntArgument<"FormatIdx">];
/external/clang/lib/Sema/
DSemaChecking.cpp1164 FSI->FormatIdx = Format->getFormatIdx() - 1; in getFormatStringInfo()
1171 if(FSI->FormatIdx == 0) in getFormatStringInfo()
1173 --FSI->FormatIdx; in getFormatStringInfo()
1220 Idx = FSI.FormatIdx; in GetFormatNSStringIdx()
3223 return CheckFormatArguments(Args, FSI.HasVAListArg, FSI.FormatIdx, in CheckFormatArguments()
3300 unsigned FormatIdx; member in __anon817ecb130411::CheckFormatHandler
3318 Args(Args), FormatIdx(formatIdx), in CheckFormatHandler()
3637 EmitFormatDiagnostic(S, inFunctionCall, Args[FormatIdx], PDiag, in EmitFormatDiagnostic()
DSemaDecl.cpp11424 unsigned FormatIdx; in AddKnownFunctionAttributes() local
11426 if (Context.BuiltinInfo.isPrintfLike(BuiltinID, FormatIdx, HasVAListArg)) { in AddKnownFunctionAttributes()
11430 if (FormatIdx < NumParams && // NumParams may be 0 (e.g. vfprintf) in AddKnownFunctionAttributes()
11431 FD->getParamDecl(FormatIdx)->getType()->isObjCObjectPointerType()) in AddKnownFunctionAttributes()
11435 FormatIdx+1, in AddKnownFunctionAttributes()
11436 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
11440 if (Context.BuiltinInfo.isScanfLike(BuiltinID, FormatIdx, in AddKnownFunctionAttributes()
11445 FormatIdx+1, in AddKnownFunctionAttributes()
11446 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
DSemaDeclAttr.cpp2791 IdentifierInfo *Format, int FormatIdx, in mergeFormatAttr() argument
2797 F->getFormatIdx() == FormatIdx && in mergeFormatAttr()
2807 return ::new (Context) FormatAttr(Range, Context, Format, FormatIdx, in mergeFormatAttr()
/external/clang/include/clang/Sema/
DSema.h2127 IdentifierInfo *Format, int FormatIdx,
8955 unsigned FormatIdx; member