clang 22.0.0git
clang ::lifetimes Namespace Reference

Functions

const FunctionDecl * getDeclWithMergedLifetimeBoundAttrs (const FunctionDecl *FD)
 Returns the most recent declaration of the method to ensure all lifetime-bound attributes from redeclarations are considered.
const CXXMethodDecl * getDeclWithMergedLifetimeBoundAttrs (const CXXMethodDecl *CMD)
 Returns the most recent declaration of the method to ensure all lifetime-bound attributes from redeclarations are considered.
bool isNormalAssignmentOperator (const FunctionDecl *FD)
bool isAssignmentOperatorLifetimeBound (const CXXMethodDecl *CMD)
 Returns true if this is an assignment operator where the parameter has the lifetimebound attribute.
bool implicitObjectParamIsLifetimeBound (const FunctionDecl *FD)
 Returns true if the implicit object parameter (this) should be considered lifetimebound, either due to an explicit lifetimebound attribute on the method or because it's a normal assignment operator.

Function Documentation

◆ getDeclWithMergedLifetimeBoundAttrs() [1/2]

const CXXMethodDecl * clang ::lifetimes::getDeclWithMergedLifetimeBoundAttrs ( const CXXMethodDecl * CMD)

Returns the most recent declaration of the method to ensure all lifetime-bound attributes from redeclarations are considered.

References getDeclWithMergedLifetimeBoundAttrs().

◆ getDeclWithMergedLifetimeBoundAttrs() [2/2]

const FunctionDecl * clang ::lifetimes::getDeclWithMergedLifetimeBoundAttrs ( const FunctionDecl * FD)

Returns the most recent declaration of the method to ensure all lifetime-bound attributes from redeclarations are considered.

References getDeclWithMergedLifetimeBoundAttrs().

Referenced by getDeclWithMergedLifetimeBoundAttrs(), and getDeclWithMergedLifetimeBoundAttrs().

◆ implicitObjectParamIsLifetimeBound()

bool clang ::lifetimes::implicitObjectParamIsLifetimeBound ( const FunctionDecl * FD)

Returns true if the implicit object parameter (this) should be considered lifetimebound, either due to an explicit lifetimebound attribute on the method or because it's a normal assignment operator.

References implicitObjectParamIsLifetimeBound().

Referenced by implicitObjectParamIsLifetimeBound().

◆ isAssignmentOperatorLifetimeBound()

bool clang ::lifetimes::isAssignmentOperatorLifetimeBound ( const CXXMethodDecl * CMD)

Returns true if this is an assignment operator where the parameter has the lifetimebound attribute.

References isAssignmentOperatorLifetimeBound().

Referenced by isAssignmentOperatorLifetimeBound().

◆ isNormalAssignmentOperator()

bool clang ::lifetimes::isNormalAssignmentOperator ( const FunctionDecl * FD)