Home
last modified time | relevance | path

Searched refs:nullPos (Results 1 – 4 of 4) sorted by relevance

/external/clang/lib/Sema/
DSemaDeclAttr.cpp2442 unsigned nullPos = (unsigned)SentinelAttr::DefaultNullPos; in handleSentinelAttr() local
2453 nullPos = Idx.getZExtValue(); in handleSentinelAttr()
2455 if ((Idx.isSigned() && Idx.isNegative()) || nullPos > 1) { in handleSentinelAttr()
2507 SentinelAttr(Attr.getRange(), S.Context, sentinel, nullPos, in handleSentinelAttr()
DSemaExpr.cpp454 unsigned nullPos = attr->getNullPos(); in DiagnoseSentinelCalls() local
455 assert((nullPos == 0 || nullPos == 1) && "invalid null position on sentinel"); in DiagnoseSentinelCalls()
456 numFormalParams = (nullPos > numFormalParams ? 0 : numFormalParams - nullPos); in DiagnoseSentinelCalls()
/external/llvm-project/clang/lib/Sema/
DSemaDeclAttr.cpp2754 unsigned nullPos = (unsigned)SentinelAttr::DefaultNullPos; in handleSentinelAttr() local
2764 nullPos = Idx->getZExtValue(); in handleSentinelAttr()
2766 if ((Idx->isSigned() && Idx->isNegative()) || nullPos > 1) { in handleSentinelAttr()
2817 D->addAttr(::new (S.Context) SentinelAttr(S.Context, AL, sentinel, nullPos)); in handleSentinelAttr()
DSemaExpr.cpp449 unsigned nullPos = attr->getNullPos(); in DiagnoseSentinelCalls() local
450 assert((nullPos == 0 || nullPos == 1) && "invalid null position on sentinel"); in DiagnoseSentinelCalls()
451 numFormalParams = (nullPos > numFormalParams ? 0 : numFormalParams - nullPos); in DiagnoseSentinelCalls()