Home
last modified time | relevance | path

Searched refs:getReturnValue (Results 1 – 25 of 55) sorted by relevance

123

/llvm-project-15.0.7/clang/test/ARCMT/
H A Dcheck-api.m6 - (void)getReturnValue:(void *)retLoc;
23 …[invok getReturnValue:&strong_id]; // expected-error {{NSInvocation's getReturnValue is not safe t…
24 …[invok getReturnValue:&weak_id]; // expected-error {{NSInvocation's getReturnValue is not safe to …
25 [invok getReturnValue:&unsafe_id];
26 [invok getReturnValue:&arg];
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/objc/
H A Dnsinvocation-argument-lifetime.m9 - (void)getReturnValue:(void *)ReturnValue;
55 [Invocation getReturnValue:&ReturnValue];
56 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: NSInvocation '-getReturnValue:' should only pass poin…
91 [Invocation getReturnValue:&(self->Bar.Field1)];
92 [Invocation getReturnValue:&(self->Bar.Field2)];
93 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: NSInvocation '-getReturnValue:' should only pass poin…
94 [Invocation getReturnValue:&(self->Bar.IntField)];
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/objc/
H A Dnsinvocation-argument-lifetime.rst9 ``getReturnValue:``, the values are copied by value into the argument pointer,
21 [invocation getReturnValue:&returnValue];
31 [invocation getReturnValue:&returnValue];
39 [invocation getReturnValue:&self->_returnValue];
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DIteratorModeling.cpp200 if (getIteratorPosition(State, Call.getReturnValue())) in checkPostCall()
206 State = setIteratorPosition(State, Call.getReturnValue(), *Pos); in checkPostCall()
226 assignToContainer(C, OrigExpr, Call.getReturnValue(), in checkPostCall()
360 handleComparison(C, OrigExpr, Call.getReturnValue(), in handleOverloadedOperator()
376 handleRandomIncrOrDecr(C, OrigExpr, Op, Call.getReturnValue(), in handleOverloadedOperator()
396 handleRandomIncrOrDecr(C, OrigExpr, Op, Call.getReturnValue(), in handleOverloadedOperator()
403 handleIncrement(C, Call.getReturnValue(), InstCall->getCXXThisVal(), in handleOverloadedOperator()
408 handleIncrement(C, Call.getReturnValue(), Call.getArgSVal(0), in handleOverloadedOperator()
418 handleDecrement(C, Call.getReturnValue(), Call.getArgSVal(0), in handleOverloadedOperator()
430 (this->**Handler)(C, OrigExpr, Call.getReturnValue(), in handleAdvanceLikeFunction()
[all …]
H A DTrustReturnsNonnullChecker.cpp34 if (auto L = Call.getReturnValue().getAs<Loc>()) in checkPostCall()
H A DTrustNonnullChecker.cpp89 if (auto L = Call.getReturnValue().getAs<Loc>()) in checkPostCall()
117 SymbolRef RetS = Msg.getReturnValue().getAsSymbol(); in checkPostObjCMessage()
H A DReturnValueChecker.cpp91 SVal ReturnV = Call.getReturnValue(); in checkPostCall()
H A DBlockInCriticalSectionChecker.cpp143 SymbolRef BlockDesc = Call.getReturnValue().getAsSymbol(); in checkPostCall()
H A DFuchsiaHandleChecker.cpp376 ResultSymbol = Call.getReturnValue().getAsSymbol(); in checkPostCall()
380 SymbolRef RetSym = Call.getReturnValue().getAsSymbol(); in checkPostCall()
396 SymbolRef RetSym = Call.getReturnValue().getAsSymbol(); in checkPostCall()
H A DPthreadLockChecker.cpp427 SVal RetVal = Call.getReturnValue(); in AcquireLockAux()
447 SVal RetVal = Call.getReturnValue(); in AcquireLockAux()
557 SymbolRef sym = Call.getReturnValue().getAsSymbol(); in DestroyLockAux()
H A DVforkChecker.cpp156 SVal VforkRetVal = Call.getReturnValue(); in checkPostCall()
H A DDynamicTypePropagation.cpp309 const MemRegion *RetReg = Call.getReturnValue().getAsRegion(); in checkPostCall()
908 SymbolRef RetSym = M.getReturnValue().getAsSymbol(); in checkPostObjCMessage()
993 const MemRegion *RetRegion = M.getReturnValue().getAsRegion(); in checkPostObjCMessage()
H A DSimpleStreamChecker.cpp113 SymbolRef FileDesc = Call.getReturnValue().getAsSymbol(); in checkPostCall()
H A DInnerPointerChecker.cpp237 SVal RawPtr = Call.getReturnValue(); in checkPostCall()
H A DObjCSelfInitChecker.cpp294 addSelfFlag(state, CE.getReturnValue(), prevFlags, C); in checkPostCall()
/llvm-project-15.0.7/llvm/unittests/Transforms/Utils/
H A DCodeExtractorTest.cpp184 ConstantInt *CIFirst = dyn_cast<ConstantInt>(FirstReturn->getReturnValue()); in TEST()
190 ConstantInt *CINext = dyn_cast<ConstantInt>(NextReturn->getReturnValue()); in TEST()
241 ConstantInt *CIFirst = dyn_cast<ConstantInt>(FirstReturn->getReturnValue()); in TEST()
247 ConstantInt *CINext = dyn_cast<ConstantInt>(NextReturn->getReturnValue()); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/
H A DPointerTypeAnalysis.cpp74 Type *NewRetTy = classifyPointerType(RetInst->getReturnValue()); in classifyFunctionType()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp322 if (Ret->getReturnValue()) in versionCallSite()
323 NewRet->replaceUsesOfWith(Ret->getReturnValue(), NewRetVal); in versionCallSite()
H A DInlineFunction.cpp2447 auto *OldCast = dyn_cast_or_null<BitCastInst>(RI->getReturnValue()); in InlineFunction()
2499 if (&CB == R->getReturnValue()) in InlineFunction()
2502 CB.replaceAllUsesWith(R->getReturnValue()); in InlineFunction()
2584 assert(RI->getReturnValue()->getType() == PHI->getType() && in InlineFunction()
2586 PHI->addIncoming(RI->getReturnValue(), RI->getParent()); in InlineFunction()
2609 if (&CB == Returns[0]->getReturnValue()) in InlineFunction()
2612 CB.replaceAllUsesWith(Returns[0]->getReturnValue()); in InlineFunction()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCoroutine.cpp584 EmitAnyExprToMem(S.getReturnValue(), ReturnValue, in EmitCoroutineBody()
585 S.getReturnValue()->getType().getQualifiers(), in EmitCoroutineBody()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DTailRecursionElimination.cpp692 if (Ret->getReturnValue() == CI || AccRecInstr) { in eliminateCall()
701 RetKnownPN, RetPN, Ret->getReturnValue(), "current.ret.tr", Ret); in eliminateCall()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPURewriteOutArguments.cpp345 Value *RetVal = RI->getReturnValue(); in runOnFunction()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DGlobalDCE.cpp96 return !RI->getReturnValue(); in isEmptyFunction()
H A DCalledValuePropagation.cpp248 auto RegI = CVPLatticeKey(I.getReturnValue(), IPOGrouping::Register); in visitReturn()
H A DFunctionAttrs.cpp823 Value *RetVal = Ret->getReturnValue()->stripPointerCasts(); in addArgumentReturnedAttrs()
1103 FlowsToReturn.insert(Ret->getReturnValue()); in isFunctionMallocLike()
1214 FlowsToReturn.insert(Ret->getReturnValue()); in isReturnNonNull()

123