Lines Matching defs:CallEvent

1 //===- CallEvent.h - Wrapper for all function and method calls ----*- C++ -*--//
10 /// \file This file defines CallEvent and its subclasses, which represent path-
49 class CallEvent;
52 template<typename T = CallEvent>
110 /// CallEventManager to be able to re-use CallEvent-sized memory blocks,
111 /// subclasses of CallEvent may not add any data members to the base class.
113 class CallEvent {
122 void operator=(const CallEvent &) LLVM_DELETED_FUNCTION;
143 CallEvent(const Expr *E, ProgramStateRef state, const LocationContext *lctx)
146 CallEvent(const Decl *D, ProgramStateRef state, const LocationContext *lctx)
150 CallEvent(const CallEvent &Original)
154 /// Copies this CallEvent, with vtable intact, into a new block of memory.
170 virtual ~CallEvent() {}
252 /// This should only be called if the CallEvent was created using a state in
319 /// Returns a copy of this CallEvent, but using the given state.
323 /// Returns a copy of this CallEvent, but using the given state.
325 return cloneWithState<CallEvent>(NewState);
380 class AnyFunctionCall : public CallEvent {
384 : CallEvent(E, St, LCtx) {}
387 : CallEvent(D, St, LCtx) {}
388 AnyFunctionCall(const AnyFunctionCall &Other) : CallEvent(Other) {}
394 return cast<FunctionDecl>(CallEvent::getDecl());
419 static bool classof(const CallEvent *CA) {
456 static bool classof(const CallEvent *CA) {
464 class BlockCall : public CallEvent {
470 : CallEvent(CE, St, LCtx) {}
472 BlockCall(const BlockCall &Other) : CallEvent(Other) {}
479 return cast<CallExpr>(CallEvent::getOriginExpr());
515 static bool classof(const CallEvent *CA) {
550 static bool classof(const CallEvent *CA) {
591 static bool classof(const CallEvent *CA) {
630 static bool classof(const CallEvent *CA) {
679 static bool classof(const CallEvent *CA) {
732 static bool classof(const CallEvent *CA) {
773 static bool classof(const CallEvent *CE) {
791 class ObjCMethodCall : public CallEvent {
799 : CallEvent(Msg, St, LCtx) {
803 ObjCMethodCall(const ObjCMethodCall &Other) : CallEvent(Other) {}
814 return cast<ObjCMessageExpr>(CallEvent::getOriginExpr());
884 static bool classof(const CallEvent *CA) {
890 /// \brief Manages the lifetime of CallEvent objects.
893 /// stack" as if they were value objects by keeping a cache of CallEvent-sized
898 friend class CallEvent;
908 /// Returns memory that can be initialized as a CallEvent.
919 "CallEvent subclasses are not all the same size");
926 "CallEvent subclasses are not all the same size");
934 "CallEvent subclasses are not all the same size");
943 "CallEvent subclasses are not all the same size");
987 CallEventRef<T> CallEvent::cloneWithState(ProgramStateRef NewState) const {
989 static_assert(sizeof(T) == sizeof(CallEvent),
1004 inline void CallEvent::Release() const {
1014 this->~CallEvent();