Fix linker error on clang (issue #2)

This commit is contained in:
Jacob Dufault 2017-06-14 20:12:52 -07:00
parent 053aa549f0
commit 7328d138e3
2 changed files with 3 additions and 1 deletions

View File

@ -257,6 +257,8 @@ std::string GetDocumentContentInRange(CXTranslationUnit cx_tu, CXSourceRange ran
// static
int IndexFile::kCurrentVersion = 4;
IndexFile::IndexFile(const std::string& path) : id_cache(path), path(path) { IndexFile::IndexFile(const std::string& path) : id_cache(path), path(path) {
// TODO: Reconsider if we should still be reusing the same id_cache. // TODO: Reconsider if we should still be reusing the same id_cache.

View File

@ -455,7 +455,7 @@ MAKE_REFLECT_STRUCT(IndexInclude, line, resolved_path);
struct IndexFile { struct IndexFile {
IdCache id_cache; IdCache id_cache;
static constexpr int kCurrentVersion = 4; static int kCurrentVersion;
int version = 0; int version = 0;
std::string path; std::string path;