clang 22.0.0git
|
A dummy-fact used to mark a specific point in the code for testing. More...
Public Member Functions | |
TestPointFact (StringRef Annotation) | |
StringRef | getAnnotation () const |
void | dump (llvm::raw_ostream &OS, const OriginManager &) const override |
![]() | |
virtual | ~Fact ()=default |
Kind | getKind () const |
template<typename T > | |
const T * | getAs () const |
virtual void | dump (llvm::raw_ostream &OS, const OriginManager &) const |
Static Public Member Functions | |
static bool | classof (const Fact *F) |
Additional Inherited Members | |
![]() | |
enum class | Kind : uint8_t { Issue , Expire , AssignOrigin , ReturnOfOrigin , Use , TestPoint } |
![]() | |
Fact (Kind K) | |
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.
|
inlineexplicit |
Definition at line 344 of file LifetimeSafety.cpp.
Definition at line 342 of file LifetimeSafety.cpp.
References clang::lifetimes::internal::Fact::getKind(), and clang::lifetimes::internal::Fact::TestPoint.
|
inlineoverridevirtual |
Reimplemented from clang::lifetimes::internal::Fact.
Definition at line 349 of file LifetimeSafety.cpp.
References getAnnotation().
|
inline |
Definition at line 347 of file LifetimeSafety.cpp.
Referenced by dump().