clang 22.0.0git
clang ::lifetimes Namespace Reference

Functions

bool isInStlNamespace (const Decl *D)
bool isPointerLikeType (QualType QT)
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.
bool shouldTrackImplicitObjectArg (const CXXMethodDecl *Callee)
bool shouldTrackFirstArgument (const FunctionDecl *FD)
bool isGslPointerType (QualType QT)
bool isGslOwnerType (QualType QT)

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

◆ isGslOwnerType()

bool clang ::lifetimes::isGslOwnerType ( QualType QT)

◆ isGslPointerType()

bool clang ::lifetimes::isGslPointerType ( QualType QT)

◆ isInStlNamespace()

bool clang ::lifetimes::isInStlNamespace ( const Decl * D)

References isInStlNamespace().

Referenced by isInStlNamespace().

◆ isNormalAssignmentOperator()

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

◆ isPointerLikeType()

bool clang ::lifetimes::isPointerLikeType ( QualType QT)

References isPointerLikeType().

Referenced by isPointerLikeType().

◆ shouldTrackFirstArgument()

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

◆ shouldTrackImplicitObjectArg()

bool clang ::lifetimes::shouldTrackImplicitObjectArg ( const CXXMethodDecl * Callee)