mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-23 16:15:07 +00:00
19 lines
498 B
C++
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); |