2017-12-24 01:30:52 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "file_consumer.h"
|
|
|
|
|
2017-12-28 16:55:46 +00:00
|
|
|
#include <atomic>
|
2017-12-24 01:30:52 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
struct ClangTranslationUnit;
|
|
|
|
struct Config;
|
|
|
|
struct ImportManager;
|
2017-12-29 15:52:43 +00:00
|
|
|
struct MultiQueueWaiter;
|
|
|
|
struct Project;
|
2017-12-24 01:30:52 +00:00
|
|
|
struct QueryDatabase;
|
|
|
|
struct SemanticHighlightSymbolCache;
|
2017-12-29 15:52:43 +00:00
|
|
|
struct TimestampManager;
|
2017-12-24 01:30:52 +00:00
|
|
|
struct WorkingFiles;
|
|
|
|
|
2017-12-28 16:55:46 +00:00
|
|
|
struct ImportPipelineStatus {
|
|
|
|
std::atomic<int> num_active_threads;
|
2017-12-28 18:21:30 +00:00
|
|
|
|
|
|
|
ImportPipelineStatus();
|
2017-12-28 16:55:46 +00:00
|
|
|
};
|
|
|
|
|
2017-12-24 01:30:52 +00:00
|
|
|
void IndexWithTuFromCodeCompletion(
|
|
|
|
FileConsumer::SharedState* file_consumer_shared,
|
|
|
|
ClangTranslationUnit* tu,
|
|
|
|
const std::vector<CXUnsavedFile>& file_contents,
|
|
|
|
const std::string& path,
|
|
|
|
const std::vector<std::string>& args);
|
|
|
|
|
2017-12-29 15:52:43 +00:00
|
|
|
void IndexMain(Config* config,
|
|
|
|
FileConsumer::SharedState* file_consumer_shared,
|
|
|
|
TimestampManager* timestamp_manager,
|
|
|
|
ImportManager* import_manager,
|
|
|
|
ImportPipelineStatus* status,
|
|
|
|
Project* project,
|
|
|
|
WorkingFiles* working_files,
|
|
|
|
MultiQueueWaiter* waiter);
|
|
|
|
|
2017-12-24 01:30:52 +00:00
|
|
|
bool QueryDb_ImportMain(Config* config,
|
|
|
|
QueryDatabase* db,
|
|
|
|
ImportManager* import_manager,
|
|
|
|
SemanticHighlightSymbolCache* semantic_cache,
|
|
|
|
WorkingFiles* working_files);
|