clang 22.0.0git
Public Member Functions | Static Public Member Functions | List of all members
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 OriginManager &) const override
 
- Public Member Functions inherited from clang::lifetimes::internal::Fact
virtual ~Fact ()=default
 
Kind getKind () const
 
template<typename T >
const TgetAs () const
 
virtual void dump (llvm::raw_ostream &OS, const OriginManager &) 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 338 of file LifetimeSafety.cpp.

Constructor & Destructor Documentation

◆ TestPointFact()

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

Definition at line 344 of file LifetimeSafety.cpp.

Member Function Documentation

◆ classof()

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

◆ dump()

void clang::lifetimes::internal::TestPointFact::dump ( llvm::raw_ostream &  OS,
const OriginManager  
) const
inlineoverridevirtual

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

Definition at line 349 of file LifetimeSafety.cpp.

References getAnnotation().

◆ getAnnotation()

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

Definition at line 347 of file LifetimeSafety.cpp.

Referenced by dump().


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