Home
last modified time | relevance | path

Searched refs:takeOwnership (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DDataflowAnalysisContext.cpp36 return takeOwnership( in getStableStorageLocation()
39 return takeOwnership(std::make_unique<ScalarStorageLocation>(Type)); in getStableStorageLocation()
68 &takeOwnership(std::make_unique<PointerValue>(PointeeLoc)); in getOrCreateNullPointerValue()
90 &takeOwnership(std::make_unique<ConjunctionValue>(LHS, RHS)); in getOrCreateConjunction()
103 &takeOwnership(std::make_unique<DisjunctionValue>(LHS, RHS)); in getOrCreateDisjunction()
110 Res.first->second = &takeOwnership(std::make_unique<NegationValue>(Val)); in getOrCreateNegation()
122 &takeOwnership(std::make_unique<ImplicationValue>(LHS, RHS)); in getOrCreateImplication()
135 &takeOwnership(std::make_unique<BiconditionalValue>(LHS, RHS)); in getOrCreateIff()
H A DTransfer.cpp121 auto &Val = Env.takeOwnership(std::make_unique<ReferenceValue>(*DeclLoc)); in VisitDeclRefExpr()
153 Env.takeOwnership(std::make_unique<ReferenceValue>(*InitExprLoc)); in VisitDeclStmt()
286 Env.setValue(Loc, Env.takeOwnership(std::make_unique<ReferenceValue>( in VisitUnaryOperator()
301 Env.takeOwnership(std::make_unique<PointerValue>(*PointeeLoc)); in VisitUnaryOperator()
331 Env.setValue(Loc, Env.takeOwnership( in VisitCXXThisExpr()
354 Env.setValue(Loc, Env.takeOwnership( in VisitMemberExpr()
379 Loc, Env.takeOwnership(std::make_unique<ReferenceValue>(MemberLoc))); in VisitMemberExpr()
H A DDataflowEnvironment.cpp454 return &takeOwnership(std::make_unique<IntegerValue>()); in createValueUnlessSelfReferential()
471 return &takeOwnership(std::make_unique<ReferenceValue>(PointeeLoc)); in createValueUnlessSelfReferential()
488 return &takeOwnership(std::make_unique<PointerValue>(PointeeLoc)); in createValueUnlessSelfReferential()
510 return &takeOwnership( in createValueUnlessSelfReferential()
H A DTypeErasedDataflowAnalysis.cpp296 State.Env.takeOwnership( in transferCFGInitializer()
/llvm-project-15.0.7/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowEnvironment.h257 takeOwnership(std::unique_ptr<T> Loc) { in takeOwnership() function
258 return DACtx->takeOwnership(std::move(Loc)); in takeOwnership()
269 takeOwnership(std::unique_ptr<T> Val) { in takeOwnership() function
270 return DACtx->takeOwnership(std::move(Val)); in takeOwnership()
H A DDataflowAnalysisContext.h74 takeOwnership(std::unique_ptr<T> Loc) { in takeOwnership() function
87 takeOwnership(std::unique_ptr<T> Val) { in takeOwnership() function
170 return takeOwnership(std::make_unique<AtomicBoolValue>()); in createAtomicBoolValue()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp185 return Env.takeOwnership(std::move(OptionalVal)); in createOptionalValue()
275 OptionalVal.setProperty("value", Env.takeOwnership(std::move(ValueRef))); in maybeInitializeOptionalValueMember()
/llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/
H A DTypeErasedDataflowAnalysisTest.cpp545 &Env.takeOwnership(std::make_unique<AtomicBoolValue>()); in runDataflow()