From 3132572e72273034788c2175dff2e3a3aaa4cc63 Mon Sep 17 00:00:00 2001 From: Chao Shen Date: Thu, 18 Jan 2018 12:08:05 +0800 Subject: [PATCH] Don't give up index files of headers if the .cc/.cpp file failed. --- src/import_pipeline.cc | 2 -- src/indexer.cc | 1 - 2 files changed, 3 deletions(-) diff --git a/src/import_pipeline.cc b/src/import_pipeline.cc index 8fad369a..9dac1069 100644 --- a/src/import_pipeline.cc +++ b/src/import_pipeline.cc @@ -129,8 +129,6 @@ std::vector DoParseFile( if (!last_cached_modification || modification_timestamp != *last_cached_modification) { file_consumer_shared->Reset(path); - timestamp_manager->UpdateCachedModificationTime( - path, *modification_timestamp); return FileParseQuery::NeedsParse; } diff --git a/src/indexer.cc b/src/indexer.cc index 9e241cc8..269bd853 100644 --- a/src/indexer.cc +++ b/src/indexer.cc @@ -1984,7 +1984,6 @@ std::vector> ParseWithTu( if (index_result != CXError_Success) { LOG_S(WARNING) << "Indexing " << file << " failed with errno=" << index_result; - return {}; } clang_IndexAction_dispose(index_action);