From 9f3a279f2c999a9d2d26104824b9bd5fc14be6cb Mon Sep 17 00:00:00 2001 From: George Karpenkov Date: Fri, 11 Jan 2019 23:35:04 +0000 Subject: [analyzer] Introduce a convenience method for getting a CallEvent from an arbitrary Stmt Differential Revision: https://reviews.llvm.org/D56300 llvm-svn: 350981 --- clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/include') diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h index a53e8ee693f4..81dd83fc1071 100644 --- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h +++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h @@ -1138,9 +1138,16 @@ class CallEventManager { public: CallEventManager(llvm::BumpPtrAllocator &alloc) : Alloc(alloc) {} + /// Gets an outside caller given a callee context. CallEventRef<> getCaller(const StackFrameContext *CalleeCtx, ProgramStateRef State); + /// Gets a call event for a function call, Objective-C method call, + /// or a 'new' call. + CallEventRef<> + getCall(const Stmt *S, ProgramStateRef State, + const LocationContext *LC); + CallEventRef<> getSimpleCall(const CallExpr *E, ProgramStateRef State, const LocationContext *LCtx); -- cgit v1.2.3