Don't give up index files of headers if the .cc/.cpp file failed.

This commit is contained in:
Chao Shen 2018-01-18 12:08:05 +08:00 committed by Jacob Dufault
parent 7d516717d7
commit 3132572e72
2 changed files with 0 additions and 3 deletions

View File

@ -129,8 +129,6 @@ std::vector<Index_DoIdMap> DoParseFile(
if (!last_cached_modification ||
modification_timestamp != *last_cached_modification) {
file_consumer_shared->Reset(path);
timestamp_manager->UpdateCachedModificationTime(
path, *modification_timestamp);
return FileParseQuery::NeedsParse;
}

View File

@ -1984,7 +1984,6 @@ std::vector<std::unique_ptr<IndexFile>> ParseWithTu(
if (index_result != CXError_Success) {
LOG_S(WARNING) << "Indexing " << file
<< " failed with errno=" << index_result;
return {};
}
clang_IndexAction_dispose(index_action);