LLVM: llvm::unittest::TempDir Class Reference (original) (raw)
A RAII object that creates a temporary directory upon initialization and removes it upon destruction. More...
#include "[llvm/Testing/Support/SupportHelpers.h](SupportHelpers%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| TempDir (StringRef Name, bool Unique=false) | |
| Creates a managed temporary directory. | |
| ~TempDir () | |
| TempDir (const TempDir &)=delete | |
| TempDir & | operator= (const TempDir &)=delete |
| TempDir (TempDir &&)=default | |
| TempDir & | operator= (TempDir &&)=default |
| StringRef | path () const |
| The path to the temporary directory. | |
| const char * | c_str () |
| The null-terminated C string pointing to the path. | |
| SmallString< 128 > | path (StringRef component) const |
| Creates a new path by appending the argument to the path of the managed directory using the native path separator. |
A RAII object that creates a temporary directory upon initialization and removes it upon destruction.
Definition at line 113 of file SupportHelpers.h.
◆ TempDir() [1/3]
| llvm::unittest::TempDir::TempDir ( StringRef Name, bool Unique = false ) | inlineexplicit |
|---|
| llvm::unittest::TempDir::~TempDir ( ) | inline |
|---|
◆ TempDir() [2/3]
◆ TempDir() [3/3]
| llvm::unittest::TempDir::TempDir ( TempDir && ) | default |
|---|
◆ c_str()
| const char * llvm::unittest::TempDir::c_str ( ) | inline |
|---|
The null-terminated C string pointing to the path.
Definition at line 156 of file SupportHelpers.h.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ path() [1/2]
| StringRef llvm::unittest::TempDir::path ( ) const | inline |
|---|
◆ path() [2/2]
The documentation for this class was generated from the following file:
- include/llvm/Testing/Support/SupportHelpers.h