ccls/src/import_pipeline.h

31 lines
851 B
C
Raw Normal View History

#pragma once
2017-12-28 16:55:46 +00:00
#include <atomic>
struct ClangTranslationUnit;
class DiagnosticsEngine;
struct VFS;
struct ICacheManager;
struct MultiQueueWaiter;
struct Project;
struct QueryDatabase;
struct SemanticHighlightSymbolCache;
struct WorkingFiles;
2017-12-28 16:55:46 +00:00
struct ImportPipelineStatus {
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,
VFS* vfs,
2017-12-29 15:56:34 +00:00
ImportPipelineStatus* status,
Project* project,
WorkingFiles* working_files,
MultiQueueWaiter* waiter);
2018-04-04 06:05:41 +00:00
bool QueryDb_ImportMain(QueryDatabase* db,
ImportPipelineStatus* status,
SemanticHighlightSymbolCache* semantic_cache,
WorkingFiles* working_files);