clang API Documentation

Public Member Functions | Static Public Member Functions
clang::ento::objc_retain::CallEffects Class Reference

#include <ObjCRetainCount.h>

List of all members.

Public Member Functions

ArrayRef< ArgEffectgetArgs () 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.

Detailed Description

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.


Member Function Documentation

Returns the argument effects for a call.

Definition at line 208 of file ObjCRetainCount.h.

Return the CallEfect for a given Objective-C method.

Definition at line 3830 of file RetainCountChecker.cpp.

References createCallEffect.

Return the CallEfect for a given C/C++ function.

Definition at line 3835 of file RetainCountChecker.cpp.

References createCallEffect.

Returns the effects on the receiver.

Definition at line 211 of file ObjCRetainCount.h.

Returns the effect on the return value.

Definition at line 214 of file ObjCRetainCount.h.


The documentation for this class was generated from the following files: