clang
3.7.0
|
#include <ObjCRetainCount.h>
Public Member Functions | |
ArrayRef< ArgEffect > | getArgs () const |
Returns the argument effects for a call. More... | |
ArgEffect | getReceiver () const |
Returns the effects on the receiver. More... | |
RetEffect | getReturnValue () const |
Returns the effect on the return value. More... | |
Static Public Member Functions | |
static CallEffects | getEffect (const ObjCMethodDecl *MD) |
Return the CallEfect for a given Objective-C method. More... | |
static CallEffects | getEffect (const FunctionDecl *FD) |
Return the CallEfect for a given C/C++ function. More... | |
Encapsulates the retain count semantics on the arguments, return value, and receiver (if any) of a function/method call.
Note that construction of these objects is not highly efficient. That is okay for clients where creating these objects isn't really a bottleneck. The purpose of the API is to provide something simple. The actual static analyzer checker that implements retain/release typestate tracking uses something more efficient.
Definition at line 207 of file ObjCRetainCount.h.
Returns the argument effects for a call.
Definition at line 216 of file ObjCRetainCount.h.
|
static |
Return the CallEfect for a given Objective-C method.
Definition at line 4013 of file RetainCountChecker.cpp.
References createCallEffect.
|
static |
Return the CallEfect for a given C/C++ function.
Definition at line 4018 of file RetainCountChecker.cpp.
References createCallEffect.
|
inline |
Returns the effects on the receiver.
Definition at line 219 of file ObjCRetainCount.h.
|
inline |
Returns the effect on the return value.
Definition at line 222 of file ObjCRetainCount.h.