LLVM: lib/Support/CachePruning.cpp File Reference (original) (raw)
#include "[llvm/Support/CachePruning.h](CachePruning%5F8h%5Fsource.html)"#include "[llvm/ADT/StringRef.h](StringRef%5F8h%5Fsource.html)"#include "[llvm/Support/Debug.h](Support%5F2Debug%5F8h%5Fsource.html)"#include "[llvm/Support/Errc.h](Errc%5F8h%5Fsource.html)"#include "[llvm/Support/Error.h](llvm%5F2Support%5F2Error%5F8h%5Fsource.html)"#include "[llvm/Support/FileSystem.h](FileSystem%5F8h%5Fsource.html)"#include "[llvm/Support/Path.h](Path%5F8h%5Fsource.html)"#include "[llvm/Support/WithColor.h](WithColor%5F8h%5Fsource.html)"#include "[llvm/Support/raw_ostream.h](raw%5F%5Fostream%5F8h%5Fsource.html)"#include <set>#include <system_error>
Go to the source code of this file.
| Macros | |
|---|---|
| #define | DEBUG_TYPE "cache-pruning" |
| Functions | |
|---|---|
| static void | writeTimestampFile (StringRef TimestampFile) |
| Write a new timestamp file with the given path. | |
| static Expected< std::chrono::seconds > | parseDuration (StringRef Duration) |
Macro Definition Documentation
◆ DEBUG_TYPE
#define DEBUG_TYPE "cache-pruning"
Definition at line 23 of file CachePruning.cpp.
Function Documentation
◆ parseDuration()
| Expected< std::chrono::seconds > parseDuration ( StringRef Duration) | static |
|---|
Definition at line 52 of file CachePruning.cpp.
References llvm::StringRef::getAsInteger(), llvm::inconvertibleErrorCode(), and llvm::make_error().
Referenced by llvm::parseCachePruningPolicy().
◆ writeTimestampFile()
| void writeTimestampFile ( StringRef TimestampFile) | static |
|---|
Write a new timestamp file with the given path.
This is used for the pruning interval option.
Definition at line 47 of file CachePruning.cpp.
References llvm::sys::fs::OF_None, and llvm::StringRef::str().
Referenced by llvm::pruneCache().