ccls/src/cache.h

19 lines
498 B
C
Raw Normal View History

2017-04-09 02:24:32 +00:00
#pragma once
#include <optional.h>
2017-04-09 02:24:32 +00:00
#include <memory>
#include <string>
using std::experimental::nullopt;
2017-09-22 01:14:57 +00:00
using std::experimental::optional;
struct Config;
struct IndexFile;
2017-04-09 02:24:32 +00:00
std::unique_ptr<IndexFile> LoadCachedIndex(Config* config,
const std::string& filename);
optional<std::string> LoadCachedFileContents(Config* config,
2017-04-22 07:42:57 +00:00
const std::string& filename);
2017-04-09 02:24:32 +00:00
2017-09-22 01:14:57 +00:00
void WriteToCache(Config* config, IndexFile& file);