Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Basic/
H A DBuiltins.cpp150 bool Builtin::Context::isLike(unsigned ID, unsigned &FormatIdx, in isLike() argument
169 FormatIdx = ::strtol(Like, nullptr, 10); in isLike()
173 bool Builtin::Context::isPrintfLike(unsigned ID, unsigned &FormatIdx, in isPrintfLike() argument
175 return isLike(ID, FormatIdx, HasVAListArg, "pP"); in isPrintfLike()
178 bool Builtin::Context::isScanfLike(unsigned ID, unsigned &FormatIdx, in isScanfLike() argument
180 return isLike(ID, FormatIdx, HasVAListArg, "sS"); in isScanfLike()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DBuiltins.h217 bool isPrintfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
222 bool isScanfLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg);
265 bool isLike(unsigned ID, unsigned &FormatIdx, bool &HasVAListArg,
H A DAttr.td1493 let Args = [IdentifierArgument<"Type">, IntArgument<"FormatIdx">,
1501 let Args = [ParamIdxArgument<"FormatIdx">];
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaChecking.cpp5418 FSI->FormatIdx = Format->getFormatIdx() - 1; in getFormatStringInfo()
5426 if(FSI->FormatIdx == 0) in getFormatStringInfo()
5428 --FSI->FormatIdx; in getFormatStringInfo()
5476 Idx = FSI.FormatIdx; in GetFormatNSStringIdx()
7717 unsigned FormatIdx = i; in SemaBuiltinOSLogFormat() local
7749 Args, FAPK_Variadic, FormatIdx, FirstDataArg, FST_OSLog, in SemaBuiltinOSLogFormat()
8659 if (PV->getFunctionScopeIndex() == CallerFSI.FormatIdx && in checkFormatStringExpr()
8851 return CheckFormatArguments(Args, FSI.ArgPassingKind, FSI.FormatIdx, in CheckFormatArguments()
8954 unsigned FormatIdx; member in __anon8097fee11c11::CheckFormatHandler
8975 ArgPassingKind(APK), Args(Args), FormatIdx(formatIdx), in CheckFormatHandler()
[all …]
H A DSemaDecl.cpp15638 unsigned FormatIdx; in AddKnownFunctionAttributes() local
15640 if (Context.BuiltinInfo.isPrintfLike(BuiltinID, FormatIdx, HasVAListArg)) { in AddKnownFunctionAttributes()
15644 if (FormatIdx < NumParams && // NumParams may be 0 (e.g. vfprintf) in AddKnownFunctionAttributes()
15645 FD->getParamDecl(FormatIdx)->getType()->isObjCObjectPointerType()) in AddKnownFunctionAttributes()
15649 FormatIdx+1, in AddKnownFunctionAttributes()
15650 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
15654 if (Context.BuiltinInfo.isScanfLike(BuiltinID, FormatIdx, in AddKnownFunctionAttributes()
15659 FormatIdx+1, in AddKnownFunctionAttributes()
15660 HasVAListArg ? 0 : FormatIdx+2, in AddKnownFunctionAttributes()
H A DSemaDeclAttr.cpp3792 IdentifierInfo *Format, int FormatIdx, in mergeFormatAttr() argument
3797 F->getFormatIdx() == FormatIdx && in mergeFormatAttr()
3807 return ::new (Context) FormatAttr(Context, CI, Format, FormatIdx, FirstArg); in mergeFormatAttr()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h3556 IdentifierInfo *Format, int FormatIdx,
13034 unsigned FormatIdx; member