clang 22.0.0git
clang::lifetimes Namespace Reference

Namespaces

namespace  internal

Classes

class  LifetimeSafetyReporter

Enumerations

enum class  Confidence : uint8_t { None , Maybe , Definite }
 Enum to track the confidence level of a potential error. More...

Functions

void runLifetimeSafetyAnalysis (AnalysisDeclContext &AC, LifetimeSafetyReporter *Reporter)
 The main entry point for the analysis.
const FunctionDeclgetDeclWithMergedLifetimeBoundAttrs (const FunctionDecl *FD)
const CXXMethodDeclgetDeclWithMergedLifetimeBoundAttrs (const CXXMethodDecl *CMD)
bool isNormalAssignmentOperator (const FunctionDecl *FD)
bool isAssignmentOperatorLifetimeBound (const CXXMethodDecl *CMD)
bool implicitObjectParamIsLifetimeBound (const FunctionDecl *FD)

Enumeration Type Documentation

◆ Confidence

enum class clang::lifetimes::Confidence : uint8_t
strong

Enum to track the confidence level of a potential error.

Enumerator
None 
Maybe 
Definite 

Definition at line 31 of file LifetimeSafety.h.

Function Documentation

◆ getDeclWithMergedLifetimeBoundAttrs() [1/2]

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

Definition at line 24 of file LifetimeAnnotations.cpp.

References getDeclWithMergedLifetimeBoundAttrs().

◆ getDeclWithMergedLifetimeBoundAttrs() [2/2]

◆ implicitObjectParamIsLifetimeBound()

◆ isAssignmentOperatorLifetimeBound()

◆ isNormalAssignmentOperator()

◆ runLifetimeSafetyAnalysis()

void clang::lifetimes::runLifetimeSafetyAnalysis ( AnalysisDeclContext & AC,
LifetimeSafetyReporter * Reporter )

The main entry point for the analysis.

Definition at line 72 of file LifetimeSafety.cpp.

References clang::lifetimes::internal::LifetimeSafetyAnalysis::run().

Referenced by clang::sema::AnalysisBasedWarnings::IssueWarnings().