2017-12-24 01:30:52 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-12-28 16:55:46 +00:00
|
|
|
#include <atomic>
|
2017-12-24 01:30:52 +00:00
|
|
|
|
|
|
|
struct ClangTranslationUnit;
|
2018-03-06 01:18:33 +00:00
|
|
|
class DiagnosticsEngine;
|
2018-05-05 22:29:17 +00:00
|
|
|
struct VFS;
|
2018-04-22 17:01:44 +00:00
|
|
|
struct ICacheManager;
|
2017-12-29 15:52:43 +00:00
|
|
|
struct MultiQueueWaiter;
|
|
|
|
struct Project;
|
2017-12-24 01:30:52 +00:00
|
|
|
struct QueryDatabase;
|
|
|
|
struct SemanticHighlightSymbolCache;
|
|
|
|
struct WorkingFiles;
|
|
|
|
|
2017-12-28 16:55:46 +00:00
|
|
|
struct ImportPipelineStatus {
|
2018-05-05 22:29:17 +00:00
|
|
|
std::atomic<int> num_active_threads = {0};
|
|
|
|
std::atomic<long long> next_progress_output = {0};
|
2017-12-28 16:55:46 +00:00
|
|
|
};
|
|
|
|
|
2018-04-04 06:05:41 +00:00
|
|
|
void Indexer_Main(DiagnosticsEngine* diag_engine,
|
2018-05-05 22:29:17 +00:00
|
|
|
VFS* vfs,
|
2017-12-29 15:56:34 +00:00
|
|
|
ImportPipelineStatus* status,
|
|
|
|
Project* project,
|
|
|
|
WorkingFiles* working_files,
|
|
|
|
MultiQueueWaiter* waiter);
|
2017-12-29 15:52:43 +00:00
|
|
|
|
2018-04-04 06:05:41 +00:00
|
|
|
bool QueryDb_ImportMain(QueryDatabase* db,
|
2018-01-07 21:06:18 +00:00
|
|
|
ImportPipelineStatus* status,
|
2017-12-24 01:30:52 +00:00
|
|
|
SemanticHighlightSymbolCache* semantic_cache,
|
|
|
|
WorkingFiles* working_files);
|