ccls/src/cache.h
2017-09-21 18:14:57 -07:00

19 lines
498 B
C++

#pragma once
#include <optional.h>
#include <memory>
#include <string>
using std::experimental::nullopt;
using std::experimental::optional;
struct Config;
struct IndexFile;
std::unique_ptr<IndexFile> LoadCachedIndex(Config* config,
const std::string& filename);
optional<std::string> LoadCachedFileContents(Config* config,
const std::string& filename);
void WriteToCache(Config* config, IndexFile& file);