mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-22 08:29:38 +00:00
Don't give up index files of headers if the .cc/.cpp file failed.
This commit is contained in:
parent
7d516717d7
commit
3132572e72
@ -129,8 +129,6 @@ std::vector<Index_DoIdMap> DoParseFile(
|
|||||||
if (!last_cached_modification ||
|
if (!last_cached_modification ||
|
||||||
modification_timestamp != *last_cached_modification) {
|
modification_timestamp != *last_cached_modification) {
|
||||||
file_consumer_shared->Reset(path);
|
file_consumer_shared->Reset(path);
|
||||||
timestamp_manager->UpdateCachedModificationTime(
|
|
||||||
path, *modification_timestamp);
|
|
||||||
return FileParseQuery::NeedsParse;
|
return FileParseQuery::NeedsParse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1984,7 +1984,6 @@ std::vector<std::unique_ptr<IndexFile>> ParseWithTu(
|
|||||||
if (index_result != CXError_Success) {
|
if (index_result != CXError_Success) {
|
||||||
LOG_S(WARNING) << "Indexing " << file
|
LOG_S(WARNING) << "Indexing " << file
|
||||||
<< " failed with errno=" << index_result;
|
<< " failed with errno=" << index_result;
|
||||||
return {};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clang_IndexAction_dispose(index_action);
|
clang_IndexAction_dispose(index_action);
|
||||||
|
Loading…
Reference in New Issue
Block a user