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 73 of file LifetimeSafety.cpp.

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

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant