Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DBuiltins.cpp263 bool Builtin::Context::isLike(unsigned ID, unsigned &FormatIdx, in isLike() argument
282 FormatIdx = ::strtol(Like, nullptr, 10); in isLike()
286 bool Builtin::Context::isPrintfLike(unsigned ID, unsigned &FormatIdx, in isPrintfLike() argument
288 return isLike(ID, FormatIdx, HasVAListArg, "pP"); in isPrintfLike()
291 bool Builtin::Context::isScanfLike(unsigned ID, unsigned &FormatIdx, in isScanfLike() argument
293 return isLike(ID, FormatIdx, HasVAListArg, "sS"); in isScanfLike()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DBuiltins.h382 bool isPrintfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
387 bool isScanfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
447 bool isLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg,
H A DAttr.td1955 let Args = [IdentifierArgument<"Type">, IntArgument<"FormatIdx">,
1963 let Args = [IdentifierArgument<"Type">, IntArgument<"FormatIdx">, ExprArgument<"ExpectedFormat">];
1973 let Args = [ParamIdxArgument<"FormatIdx">];
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp3256 bool Sema::getFormatStringInfo(const Decl *D, unsigned FormatIdx, in getFormatStringInfo() argument
3269 return getFormatStringInfo(FormatIdx, FirstArg, IsCXXMember, IsVariadic, FSI); in getFormatStringInfo()
3272 bool Sema::getFormatStringInfo(unsigned FormatIdx, unsigned FirstArg, in getFormatStringInfo() argument
3281 FSI->FormatIdx = FormatIdx - 1; in getFormatStringInfo()
3288 if(FSI->FormatIdx == 0) in getFormatStringInfo()
3290 --FSI->FormatIdx; in getFormatStringInfo()
5723 unsigned FormatIdx = i; in BuiltinOSLogFormat() local
5755 Args, FAPK_Variadic, nullptr, FormatIdx, FirstDataArg, in BuiltinOSLogFormat()
6396 if (PV->getFunctionScopeIndex() == CalleeFSI.FormatIdx) { in checkFormatStringExpr()
6423 if (PV->getFunctionScopeIndex() == CallerFSI.FormatIdx) { in checkFormatStringExpr()
[all …]
H A DSemaDeclAttr.cpp3900 IdentifierInfo *Format, int FormatIdx, in mergeFormatAttr() argument
3905 F->getFormatIdx() == FormatIdx && in mergeFormatAttr()
3915 return ::new (Context) FormatAttr(Context, CI, Format, FormatIdx, FirstArg); in mergeFormatAttr()
3921 int FormatIdx, in mergeFormatMatchesAttr() argument
3925 if (F->getType() == Format && F->getFormatIdx() == FormatIdx) { in mergeFormatMatchesAttr()
3939 FormatMatchesAttr(Context, CI, Format, FormatIdx, FormatStr); in mergeFormatMatchesAttr()
H A DSemaDecl.cpp16933 unsigned FormatIdx; in AddKnownFunctionAttributes() local
16935 if (Context.BuiltinInfo.isPrintfLike(BuiltinID, FormatIdx, HasVAListArg)) { in AddKnownFunctionAttributes()
16939 if (FormatIdx < NumParams && // NumParams may be 0 (e.g. vfprintf) in AddKnownFunctionAttributes()
16940 FD->getParamDecl(FormatIdx)->getType()->isObjCObjectPointerType()) in AddKnownFunctionAttributes()
16944 FormatIdx+1, in AddKnownFunctionAttributes()
16945 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
16949 if (Context.BuiltinInfo.isScanfLike(BuiltinID, FormatIdx, in AddKnownFunctionAttributes()
16954 FormatIdx+1, in AddKnownFunctionAttributes()
16955 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
H A DSemaObjC.cpp2261 Idx = FSI.FormatIdx; in GetFormatNSStringIdx()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h2593 unsigned FormatIdx; member
2602 static bool getFormatStringInfo(const Decl *Function, unsigned FormatIdx,
2604 static bool getFormatStringInfo(unsigned FormatIdx, unsigned FirstArg,
4935 IdentifierInfo *Format, int FormatIdx,
4940 int FormatIdx,