Home
last modified time | relevance | path

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

/external/clang/lib/Basic/
DBuiltins.cpp104 bool Builtin::Context::isLike(unsigned ID, unsigned &FormatIdx, in isLike() argument
123 FormatIdx = ::strtol(Like, nullptr, 10); in isLike()
127 bool Builtin::Context::isPrintfLike(unsigned ID, unsigned &FormatIdx, in isPrintfLike() argument
129 return isLike(ID, FormatIdx, HasVAListArg, "pP"); in isPrintfLike()
132 bool Builtin::Context::isScanfLike(unsigned ID, unsigned &FormatIdx, in isScanfLike() argument
134 return isLike(ID, FormatIdx, HasVAListArg, "sS"); in isScanfLike()
/external/clang/include/clang/Basic/
DBuiltins.h173 bool isPrintfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
178 bool isScanfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
213 bool isLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg,
DAttr.td839 let Args = [IdentifierArgument<"Type">, IntArgument<"FormatIdx">,
848 let Args = [IntArgument<"FormatIdx">];
/external/clang/lib/Sema/
DSemaChecking.cpp1878 FSI->FormatIdx = Format->getFormatIdx() - 1; in getFormatStringInfo()
1885 if(FSI->FormatIdx == 0) in getFormatStringInfo()
1887 --FSI->FormatIdx; in getFormatStringInfo()
1934 Idx = FSI.FormatIdx; in GetFormatNSStringIdx()
4035 return CheckFormatArguments(Args, FSI.HasVAListArg, FSI.FormatIdx, in CheckFormatArguments()
4135 unsigned FormatIdx; member in __anon15853a9e0511::CheckFormatHandler
4156 Args(Args), FormatIdx(formatIdx), in CheckFormatHandler()
4524 EmitFormatDiagnostic(S, inFunctionCall, Args[FormatIdx], PDiag, in EmitFormatDiagnostic()
DSemaDecl.cpp11832 unsigned FormatIdx; in AddKnownFunctionAttributes() local
11834 if (Context.BuiltinInfo.isPrintfLike(BuiltinID, FormatIdx, HasVAListArg)) { in AddKnownFunctionAttributes()
11838 if (FormatIdx < NumParams && // NumParams may be 0 (e.g. vfprintf) in AddKnownFunctionAttributes()
11839 FD->getParamDecl(FormatIdx)->getType()->isObjCObjectPointerType()) in AddKnownFunctionAttributes()
11843 FormatIdx+1, in AddKnownFunctionAttributes()
11844 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
11848 if (Context.BuiltinInfo.isScanfLike(BuiltinID, FormatIdx, in AddKnownFunctionAttributes()
11853 FormatIdx+1, in AddKnownFunctionAttributes()
11854 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
DSemaDeclAttr.cpp2864 IdentifierInfo *Format, int FormatIdx, in mergeFormatAttr() argument
2870 F->getFormatIdx() == FormatIdx && in mergeFormatAttr()
2880 return ::new (Context) FormatAttr(Range, Context, Format, FormatIdx, in mergeFormatAttr()
/external/clang/include/clang/Sema/
DSema.h2189 IdentifierInfo *Format, int FormatIdx,
9337 unsigned FormatIdx; member