Searched refs:FormatIdx (Results 1 – 7 of 7) sorted by relevance
/external/clang/lib/Basic/ |
D | Builtins.cpp | 92 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/ |
D | Builtins.h | 167 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,
|
D | Attr.td | 776 let Args = [IdentifierArgument<"Type">, IntArgument<"FormatIdx">, 785 let Args = [IntArgument<"FormatIdx">];
|
/external/clang/lib/Sema/ |
D | SemaChecking.cpp | 1164 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()
|
D | SemaDecl.cpp | 11424 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()
|
D | SemaDeclAttr.cpp | 2791 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/ |
D | Sema.h | 2127 IdentifierInfo *Format, int FormatIdx, 8955 unsigned FormatIdx; member
|