Home
last modified time | relevance | path

Searched refs:ArgExp (Results 1 – 2 of 2) sorted by relevance

/external/clang/lib/Sema/
DSemaDeclAttr.cpp527 Expr *ArgExp = Attr.getArgAsExpr(Idx); in checkAttrArgsAreCapabilityObjs() local
529 if (ArgExp->isTypeDependent()) { in checkAttrArgsAreCapabilityObjs()
531 Args.push_back(ArgExp); in checkAttrArgsAreCapabilityObjs()
535 if (StringLiteral *StrLit = dyn_cast<StringLiteral>(ArgExp)) { in checkAttrArgsAreCapabilityObjs()
540 Args.push_back(ArgExp); in checkAttrArgsAreCapabilityObjs()
548 Args.push_back(ArgExp); in checkAttrArgsAreCapabilityObjs()
552 QualType ArgTy = ArgExp->getType(); in checkAttrArgsAreCapabilityObjs()
556 if (UnaryOperator *UOp = dyn_cast<UnaryOperator>(ArgExp)) in checkAttrArgsAreCapabilityObjs()
568 IntegerLiteral *IL = dyn_cast<IntegerLiteral>(ArgExp); in checkAttrArgsAreCapabilityObjs()
587 if (!typeHasCapability(S, ArgTy) && !isCapabilityExpr(S, ArgExp)) in checkAttrArgsAreCapabilityObjs()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaDeclAttr.cpp657 Expr *ArgExp = AL.getArgAsExpr(Idx); in checkAttrArgsAreCapabilityObjs() local
659 if (ArgExp->isTypeDependent()) { in checkAttrArgsAreCapabilityObjs()
661 Args.push_back(ArgExp); in checkAttrArgsAreCapabilityObjs()
665 if (const auto *StrLit = dyn_cast<StringLiteral>(ArgExp)) { in checkAttrArgsAreCapabilityObjs()
670 Args.push_back(ArgExp); in checkAttrArgsAreCapabilityObjs()
677 Args.push_back(ArgExp); in checkAttrArgsAreCapabilityObjs()
681 QualType ArgTy = ArgExp->getType(); in checkAttrArgsAreCapabilityObjs()
685 if (const auto *UOp = dyn_cast<UnaryOperator>(ArgExp)) in checkAttrArgsAreCapabilityObjs()
697 const auto *IL = dyn_cast<IntegerLiteral>(ArgExp); in checkAttrArgsAreCapabilityObjs()
717 if (!typeHasCapability(S, ArgTy) && !isCapabilityExpr(S, ArgExp)) in checkAttrArgsAreCapabilityObjs()
[all …]