LLVM 19.0.0git
Macros | Functions
CachePruning.cpp File Reference
#include "llvm/Support/CachePruning.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/WithColor.h"
#include "llvm/Support/raw_ostream.h"
#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()

static Expected< std::chrono::seconds > parseDuration ( StringRef  Duration)
static

◆ writeTimestampFile()

static 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().