clang
15.0.0git
|
Encapsulates the lexical context of a function call. More...
#include "clang/Analysis/Analyses/ThreadSafetyCommon.h"
Public Member Functions | |
CallingContext (CallingContext *P, const NamedDecl *D=nullptr) | |
Public Attributes | |
CallingContext * | Prev |
const NamedDecl * | AttrDecl |
const Expr * | SelfArg = nullptr |
unsigned | NumArgs = 0 |
const Expr *const * | FunArgs = nullptr |
bool | SelfArrow = false |
Encapsulates the lexical context of a function call.
The lexical context includes the arguments to the call, including the implicit object argument. When an attribute containing a mutex expression is attached to a method, the expression may refer to formal parameters of the method. Actual arguments must be substituted for formal parameters to derive the appropriate mutex expression in the lexical context where the function is called. PrevCtx holds the context in which the arguments themselves should be evaluated; multiple calling contexts can be chained together by the lock_returned attribute.
Definition at line 349 of file ThreadSafetyCommon.h.
|
inline |
Definition at line 368 of file ThreadSafetyCommon.h.
const NamedDecl* clang::threadSafety::SExprBuilder::CallingContext::AttrDecl |
Definition at line 354 of file ThreadSafetyCommon.h.
const Expr* const * clang::threadSafety::SExprBuilder::CallingContext::FunArgs = nullptr |
Definition at line 363 of file ThreadSafetyCommon.h.
Referenced by clang::threadSafety::SExprBuilder::translateAttrExpr().
unsigned clang::threadSafety::SExprBuilder::CallingContext::NumArgs = 0 |
Definition at line 360 of file ThreadSafetyCommon.h.
Referenced by clang::threadSafety::SExprBuilder::translateAttrExpr().
CallingContext* clang::threadSafety::SExprBuilder::CallingContext::Prev |
Definition at line 351 of file ThreadSafetyCommon.h.
const Expr* clang::threadSafety::SExprBuilder::CallingContext::SelfArg = nullptr |
Definition at line 357 of file ThreadSafetyCommon.h.
Referenced by clang::threadSafety::SExprBuilder::translateAttrExpr().
Definition at line 366 of file ThreadSafetyCommon.h.
Referenced by clang::threadSafety::SExprBuilder::translateAttrExpr().