clang  3.7.0
Public Member Functions | Public Attributes | List of all members
clang::threadSafety::SExprBuilder::CallingContext Struct Reference

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. More...

#include <ThreadSafetyCommon.h>

Collaboration diagram for clang::threadSafety::SExprBuilder::CallingContext:
[legend]

Public Member Functions

 CallingContext (CallingContext *P, const NamedDecl *D=nullptr)
 

Public Attributes

CallingContextPrev
 
const NamedDeclAttrDecl
 
const ExprSelfArg
 
unsigned NumArgs
 
const Expr *const * FunArgs
 
bool SelfArrow
 

Detailed Description

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 324 of file ThreadSafetyCommon.h.

Constructor & Destructor Documentation

clang::threadSafety::SExprBuilder::CallingContext::CallingContext ( CallingContext P,
const NamedDecl D = nullptr 
)
inline

Definition at line 332 of file ThreadSafetyCommon.h.

Member Data Documentation

const NamedDecl* clang::threadSafety::SExprBuilder::CallingContext::AttrDecl

Definition at line 326 of file ThreadSafetyCommon.h.

const Expr* const* clang::threadSafety::SExprBuilder::CallingContext::FunArgs
unsigned clang::threadSafety::SExprBuilder::CallingContext::NumArgs
CallingContext* clang::threadSafety::SExprBuilder::CallingContext::Prev

Definition at line 325 of file ThreadSafetyCommon.h.

const Expr* clang::threadSafety::SExprBuilder::CallingContext::SelfArg
bool clang::threadSafety::SExprBuilder::CallingContext::SelfArrow

The documentation for this struct was generated from the following file: