clang
8.0.0
|
Encapsulates the retain count semantics on the arguments, return value, and receiver (if any) of a function/method call. More...
#include "clang/StaticAnalyzer/Core/RetainSummaryManager.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 219 of file RetainSummaryManager.h.
Returns the argument effects for a call.
Definition at line 230 of file RetainSummaryManager.h.
Referenced by AuditedType().
|
static |
Return the CallEfect for a given Objective-C method.
|
static |
Return the CallEfect for a given C/C++ function.
|
inline |
Returns the effects on the receiver.
Definition at line 233 of file RetainSummaryManager.h.
Referenced by AuditedType().
|
inline |
Returns the effect on the return value.
Definition at line 236 of file RetainSummaryManager.h.
Referenced by AuditedType().