File tree 2 files changed +17
-14
lines changed
include/clang/StaticAnalyzer/Core/PathSensitive
2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -436,20 +436,7 @@ class AnyFunctionCall : public CallEvent {
436
436
return cast<FunctionDecl>(CallEvent::getDecl ());
437
437
}
438
438
439
- RuntimeDefinition getRuntimeDefinition () const override {
440
- const FunctionDecl *FD = getDecl ();
441
- // Note that the AnalysisDeclContext will have the FunctionDecl with
442
- // the definition (if one exists).
443
- if (FD) {
444
- AnalysisDeclContext *AD =
445
- getLocationContext ()->getAnalysisDeclContext ()->
446
- getManager ()->getContext (FD);
447
- if (AD->getBody ())
448
- return RuntimeDefinition (AD->getDecl ());
449
- }
450
-
451
- return RuntimeDefinition ();
452
- }
439
+ RuntimeDefinition getRuntimeDefinition () const override ;
453
440
454
441
bool argumentsMayEscape () const override ;
455
442
Original file line number Diff line number Diff line change @@ -343,6 +343,22 @@ ArrayRef<ParmVarDecl*> AnyFunctionCall::parameters() const {
343
343
return D->parameters ();
344
344
}
345
345
346
+
347
+ RuntimeDefinition AnyFunctionCall::getRuntimeDefinition () const {
348
+ const FunctionDecl *FD = getDecl ();
349
+ // Note that the AnalysisDeclContext will have the FunctionDecl with
350
+ // the definition (if one exists).
351
+ if (FD) {
352
+ AnalysisDeclContext *AD =
353
+ getLocationContext ()->getAnalysisDeclContext ()->
354
+ getManager ()->getContext (FD);
355
+ if (AD->getBody ())
356
+ return RuntimeDefinition (AD->getDecl ());
357
+ }
358
+
359
+ return RuntimeDefinition ();
360
+ }
361
+
346
362
void AnyFunctionCall::getInitialStackFrameContents (
347
363
const StackFrameContext *CalleeCtx,
348
364
BindingsTy &Bindings) const {
You can’t perform that action at this time.
0 commit comments