Skip to content

Commit

Permalink
Store more info in the info file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Dec 14, 2016
1 parent 1cdc63d commit 883d739
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.6)
project(rtags)
set(RTAGS_VERSION_MAJOR 2)
set(RTAGS_VERSION_MINOR 5)
set(RTAGS_VERSION_DATABASE 105)
set(RTAGS_VERSION_DATABASE 106)
set(RTAGS_VERSION_SOURCES_FILE 7)
set(RTAGS_VERSION ${RTAGS_VERSION_MAJOR}.${RTAGS_VERSION_MINOR}.${RTAGS_VERSION_DATABASE})

Expand Down
4 changes: 3 additions & 1 deletion src/ClangIndexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,9 @@ bool ClangIndexer::writeFiles(const Path &root, String &error)
FILE *f = fopen((unitRoot + "/info").constData(), "w");
if (!f)
return false;
bytesWritten += fprintf(f, "Indexed by %s at %llu\n", p.constData(), static_cast<unsigned long long>(mIndexDataMessage.parseTime()));
bytesWritten += fprintf(f, "%s\nIndexed by %s at %llu\n",
Location::path(unit.first).constData(),
p.constData(), static_cast<unsigned long long>(mIndexDataMessage.parseTime()));
fclose(f);
}

Expand Down

0 comments on commit 883d739

Please sign in to comment.