clang API Documentation
#include <ObjCRetainCount.h>
Public Member Functions | |
ArrayRef< ArgEffect > | getArgs () const |
Returns the argument effects for a call. | |
ArgEffect | getReceiver () const |
Returns the effects on the receiver. | |
RetEffect | getReturnValue () const |
Returns the effect on the return value. | |
Static Public Member Functions | |
static CallEffects | getEffect (const ObjCMethodDecl *MD) |
Return the CallEfect for a given Objective-C method. | |
static CallEffects | getEffect (const FunctionDecl *FD) |
Return the CallEfect for a given C/C++ function. |
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 199 of file ObjCRetainCount.h.
ArrayRef<ArgEffect> clang::ento::objc_retain::CallEffects::getArgs | ( | ) | const [inline] |
Returns the argument effects for a call.
Definition at line 208 of file ObjCRetainCount.h.
CallEffects clang::ento::objc_retain::CallEffects::getEffect | ( | const ObjCMethodDecl * | MD | ) | [static] |
Return the CallEfect for a given Objective-C method.
Definition at line 3830 of file RetainCountChecker.cpp.
References createCallEffect.
CallEffects clang::ento::objc_retain::CallEffects::getEffect | ( | const FunctionDecl * | FD | ) | [static] |
Return the CallEfect for a given C/C++ function.
Definition at line 3835 of file RetainCountChecker.cpp.
References createCallEffect.
ArgEffect clang::ento::objc_retain::CallEffects::getReceiver | ( | ) | const [inline] |
Returns the effects on the receiver.
Definition at line 211 of file ObjCRetainCount.h.
RetEffect clang::ento::objc_retain::CallEffects::getReturnValue | ( | ) | const [inline] |
Returns the effect on the return value.
Definition at line 214 of file ObjCRetainCount.h.