| /llvm-project-15.0.7/clang/test/ARCMT/ |
| H A D | check-api.m | 6 - (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 D | nsinvocation-argument-lifetime.m | 9 - (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 D | nsinvocation-argument-lifetime.rst | 9 ``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 D | IteratorModeling.cpp | 200 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 D | TrustReturnsNonnullChecker.cpp | 34 if (auto L = Call.getReturnValue().getAs<Loc>()) in checkPostCall()
|
| H A D | TrustNonnullChecker.cpp | 89 if (auto L = Call.getReturnValue().getAs<Loc>()) in checkPostCall() 117 SymbolRef RetS = Msg.getReturnValue().getAsSymbol(); in checkPostObjCMessage()
|
| H A D | ReturnValueChecker.cpp | 91 SVal ReturnV = Call.getReturnValue(); in checkPostCall()
|
| H A D | BlockInCriticalSectionChecker.cpp | 143 SymbolRef BlockDesc = Call.getReturnValue().getAsSymbol(); in checkPostCall()
|
| H A D | FuchsiaHandleChecker.cpp | 376 ResultSymbol = Call.getReturnValue().getAsSymbol(); in checkPostCall() 380 SymbolRef RetSym = Call.getReturnValue().getAsSymbol(); in checkPostCall() 396 SymbolRef RetSym = Call.getReturnValue().getAsSymbol(); in checkPostCall()
|
| H A D | PthreadLockChecker.cpp | 427 SVal RetVal = Call.getReturnValue(); in AcquireLockAux() 447 SVal RetVal = Call.getReturnValue(); in AcquireLockAux() 557 SymbolRef sym = Call.getReturnValue().getAsSymbol(); in DestroyLockAux()
|
| H A D | VforkChecker.cpp | 156 SVal VforkRetVal = Call.getReturnValue(); in checkPostCall()
|
| H A D | DynamicTypePropagation.cpp | 309 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 D | SimpleStreamChecker.cpp | 113 SymbolRef FileDesc = Call.getReturnValue().getAsSymbol(); in checkPostCall()
|
| H A D | InnerPointerChecker.cpp | 237 SVal RawPtr = Call.getReturnValue(); in checkPostCall()
|
| H A D | ObjCSelfInitChecker.cpp | 294 addSelfFlag(state, CE.getReturnValue(), prevFlags, C); in checkPostCall()
|
| /llvm-project-15.0.7/llvm/unittests/Transforms/Utils/ |
| H A D | CodeExtractorTest.cpp | 184 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 D | PointerTypeAnalysis.cpp | 74 Type *NewRetTy = classifyPointerType(RetInst->getReturnValue()); in classifyFunctionType()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | CallPromotionUtils.cpp | 322 if (Ret->getReturnValue()) in versionCallSite() 323 NewRet->replaceUsesOfWith(Ret->getReturnValue(), NewRetVal); in versionCallSite()
|
| H A D | InlineFunction.cpp | 2447 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 D | CGCoroutine.cpp | 584 EmitAnyExprToMem(S.getReturnValue(), ReturnValue, in EmitCoroutineBody() 585 S.getReturnValue()->getType().getQualifiers(), in EmitCoroutineBody()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | TailRecursionElimination.cpp | 692 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 D | AMDGPURewriteOutArguments.cpp | 345 Value *RetVal = RI->getReturnValue(); in runOnFunction()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | GlobalDCE.cpp | 96 return !RI->getReturnValue(); in isEmptyFunction()
|
| H A D | CalledValuePropagation.cpp | 248 auto RegI = CVPLatticeKey(I.getReturnValue(), IPOGrouping::Register); in visitReturn()
|
| H A D | FunctionAttrs.cpp | 823 Value *RetVal = Ret->getReturnValue()->stripPointerCasts(); in addArgumentReturnedAttrs() 1103 FlowsToReturn.insert(Ret->getReturnValue()); in isFunctionMallocLike() 1214 FlowsToReturn.insert(Ret->getReturnValue()); in isReturnNonNull()
|