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

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

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 override
Public Member Functions inherited from clang::lifetimes::internal::Fact
virtual ~Fact ()=default
Kind getKind () const
template<typename T>
const TgetAs () 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 , AssignOrigin , ReturnOfOrigin ,
  Use , TestPoint
}
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 358 of file LifetimeSafety.cpp.

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
inlineoverridevirtual

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

Definition at line 369 of file LifetimeSafety.cpp.

References getAnnotation().

◆ getAnnotation()

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

Definition at line 367 of file LifetimeSafety.cpp.

Referenced by dump().


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