clang 24.0.0git
clang::lifetimes::UseSite Class Reference

Where and how an origin is used, for diagnostics. More...

#include "clang/Analysis/Analyses/LifetimeSafety/Facts.h"

Public Member Functions

UseKind getKind () const
const Expr * getExpr () const
 Null for an implicit use or one known only by its location.
const VarDecl * getScopeExitVD () const
 The variable destroyed or cleaned up, for implicit uses.
SourceLocation getLoc () const
SourceRange getRange () const
 Empty unless there is a use expression.

Static Public Member Functions

static UseSite fromExpr (const Expr &E)
static UseSite at (SourceLocation Loc)
static UseSite scopeExit (SourceLocation Loc, const VarDecl &VD, UseKind Kind)

Detailed Description

Where and how an origin is used, for diagnostics.

Definition at line 40 of file Facts.h.

Member Function Documentation

◆ at()

UseSite clang::lifetimes::UseSite::at ( SourceLocation Loc)
inlinestatic

Definition at line 57 of file Facts.h.

References clang::lifetimes::Explicit.

◆ fromExpr()

UseSite clang::lifetimes::UseSite::fromExpr ( const Expr & E)
inlinestatic

Definition at line 54 of file Facts.h.

References clang::lifetimes::Explicit.

◆ getExpr()

const Expr * clang::lifetimes::UseSite::getExpr ( ) const
inline

Null for an implicit use or one known only by its location.

Definition at line 69 of file Facts.h.

Referenced by getLoc(), and getRange().

◆ getKind()

UseKind clang::lifetimes::UseSite::getKind ( ) const
inline

◆ getLoc()

SourceLocation clang::lifetimes::UseSite::getLoc ( ) const
inline

Definition at line 76 of file Facts.h.

References getExpr().

◆ getRange()

SourceRange clang::lifetimes::UseSite::getRange ( ) const
inline

Empty unless there is a use expression.

Definition at line 82 of file Facts.h.

References getExpr().

◆ getScopeExitVD()

const VarDecl * clang::lifetimes::UseSite::getScopeExitVD ( ) const
inline

The variable destroyed or cleaned up, for implicit uses.

Definition at line 73 of file Facts.h.

◆ scopeExit()

UseSite clang::lifetimes::UseSite::scopeExit ( SourceLocation Loc,
const VarDecl & VD,
UseKind Kind )
inlinestatic

Definition at line 60 of file Facts.h.

References clang::lifetimes::Cleanup, and clang::lifetimes::Destructor.


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