Lines Matching refs:Call
35 getConstructorDeclarationForCall(const CallEvent &Call) { in getConstructorDeclarationForCall() argument
36 const auto *ConstructorCall = dyn_cast<CXXConstructorCall>(&Call); in getConstructorDeclarationForCall()
43 bool isCopyConstructorCall(const CallEvent &Call) { in isCopyConstructorCall() argument
45 getConstructorDeclarationForCall(Call)) in isCopyConstructorCall()
50 bool isCopyAssignmentCall(const CallEvent &Call) { in isCopyAssignmentCall() argument
51 const Decl *CopyAssignmentDecl = Call.getDecl(); in isCopyAssignmentCall()
59 bool isMoveConstructorCall(const CallEvent &Call) { in isMoveConstructorCall() argument
61 getConstructorDeclarationForCall(Call); in isMoveConstructorCall()
68 bool isMoveAssignmentCall(const CallEvent &Call) { in isMoveAssignmentCall() argument
69 const Decl *CopyAssignmentDecl = Call.getDecl(); in isMoveAssignmentCall()
130 class StdVariantChecker : public Checker<eval::Call, check::RegionChanges> {
146 const CallEvent *Call) const { in checkRegionChanges()
147 if (!Call) in checkRegionChanges()
151 *Call, State, Regions); in checkRegionChanges()
154 bool evalCall(const CallEvent &Call, CheckerContext &C) const { in evalCall() argument
157 if (Call.isCalledFromSystemHeader()) in evalCall()
160 if (StdGet.matches(Call)) in evalCall()
161 return handleStdGetCall(Call, C); in evalCall()
166 isa<CXXConstructorCall>(Call) && VariantConstructor.matches(Call); in evalCall()
168 isa<CXXMemberOperatorCall>(Call) && in evalCall()
169 VariantAssignmentOperator.matches(Call); in evalCall()
172 if (Call.getNumArgs() == 0 && IsVariantConstructor) { in evalCall()
173 handleDefaultConstructor(cast<CXXConstructorCall>(&Call), C); in evalCall()
179 if (Call.getNumArgs() != 1) in evalCall()
184 const auto &AsConstructorCall = cast<CXXConstructorCall>(Call); in evalCall()
187 const auto &AsMemberOpCall = cast<CXXMemberOperatorCall>(Call); in evalCall()
193 handleConstructorAndAssignment<VariantHeldTypeMap>(Call, C, ThisSVal); in evalCall()
221 bool handleStdGetCall(const CallEvent &Call, CheckerContext &C) const { in handleStdGetCall() argument
222 ProgramStateRef State = Call.getState(); in handleStdGetCall()
224 const auto &ArgType = Call.getArgSVal(0) in handleStdGetCall()
235 const MemRegion *ArgMemRegion = Call.getArgSVal(0).getAsRegion(); in handleStdGetCall()
240 const CallExpr *CE = cast<CallExpr>(Call.getOriginExpr()); in handleStdGetCall()