clang 24.0.0git
clang::lifetimes::internal::TestPointFact Class Reference

A dummy-fact used to mark a specific point in the code for testing. More...

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

Inheritance diagram for clang::lifetimes::internal::TestPointFact:
[legend]

Public Member Functions

 TestPointFact (StringRef Annotation)
StringRef getAnnotation () const
void dump (llvm::raw_ostream &OS, const LoanManager &, const OriginManager &, const LoanPropagationAnalysis *LPA=nullptr) const override
Public Member Functions inherited from clang::lifetimes::internal::Fact
virtual ~Fact ()=default
Kind getKind () const
void setID (FactID ID)
FactID getID () const
template<typename T>
const T * getAs () const

Static Public Member Functions

static bool classof (const Fact *F)

Additional Inherited Members

Public Types inherited from clang::lifetimes::internal::Fact
enum class  Kind : uint8_t {
  Issue , Expire , OriginFlow , Use ,
  MovedOrigin , TestPoint , OriginEscapes , InvalidateOrigin ,
  KillOrigin
}
Protected Member Functions inherited from clang::lifetimes::internal::Fact
 Fact (Kind K)

Detailed Description

A dummy-fact used to mark a specific point in the code for testing.

It is generated by recognizing a void("__lifetime_test_point_...") cast.

Definition at line 312 of file Facts.h.

Constructor & Destructor Documentation

◆ TestPointFact()

clang::lifetimes::internal::TestPointFact::TestPointFact ( StringRef Annotation)
inlineexplicit

Member Function Documentation

◆ classof()

bool clang::lifetimes::internal::TestPointFact::classof ( const Fact * F)
inlinestatic

◆ dump()

void clang::lifetimes::internal::TestPointFact::dump ( llvm::raw_ostream & OS,
const LoanManager & ,
const OriginManager & ,
const LoanPropagationAnalysis * LPA = nullptr ) const
overridevirtual

Reimplemented from clang::lifetimes::internal::Fact.

Definition at line 124 of file Facts.cpp.

References getAnnotation().

◆ getAnnotation()

StringRef clang::lifetimes::internal::TestPointFact::getAnnotation ( ) const
inline

Definition at line 321 of file Facts.h.

Referenced by dump().


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