| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | Builtins.cpp | 150 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 D | Builtins.h | 217 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 D | Attr.td | 1493 let Args = [IdentifierArgument<"Type">, IntArgument<"FormatIdx">, 1501 let Args = [ParamIdxArgument<"FormatIdx">];
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 5418 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 D | SemaDecl.cpp | 15638 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 D | SemaDeclAttr.cpp | 3792 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 D | Sema.h | 3556 IdentifierInfo *Format, int FormatIdx, 13034 unsigned FormatIdx; member
|