|
LLVM 22.0.0git
|
A RAII object that creates a link upon initialization and removes it upon destruction. More...
#include "llvm/Testing/Support/SupportHelpers.h"
Public Member Functions | |
| TempLink (StringRef Target, StringRef Link) | |
| Creates a managed link at path Link pointing to Target. | |
| ~TempLink () | |
| TempLink (const TempLink &)=delete | |
| TempLink & | operator= (const TempLink &)=delete |
| TempLink (TempLink &&)=default | |
| TempLink & | operator= (TempLink &&)=default |
| StringRef | path () const |
| The path to the link. | |
A RAII object that creates a link upon initialization and removes it upon destruction.
The link may be a soft or a hard link, depending on the platform.
Definition at line 173 of file SupportHelpers.h.
Creates a managed link at path Link pointing to Target.
Definition at line 178 of file SupportHelpers.h.
References llvm::sys::fs::create_link().
Referenced by operator=(), operator=(), TempLink(), and TempLink().
|
inline |
Definition at line 185 of file SupportHelpers.h.
References llvm::sys::fs::remove().
References TempLink().
|
default |
References TempLink().
References TempLink().
References TempLink().
|
inline |
The path to the link.
Definition at line 198 of file SupportHelpers.h.