mirror of
				https://github.com/MaskRay/ccls.git
				synced 2025-10-31 04:32:33 +00:00 
			
		
		
		
	Rename IndexMain to Indexer_Main
This commit is contained in:
		
							parent
							
								
									d4ce12bb9a
								
							
						
					
					
						commit
						b6071004df
					
				| @ -436,14 +436,14 @@ bool IndexMergeIndexUpdates() { | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| void IndexMain(Config* config, | ||||
|                FileConsumer::SharedState* file_consumer_shared, | ||||
|                TimestampManager* timestamp_manager, | ||||
|                ImportManager* import_manager, | ||||
|                ImportPipelineStatus* status, | ||||
|                Project* project, | ||||
|                WorkingFiles* working_files, | ||||
|                MultiQueueWaiter* waiter) { | ||||
| void Indexer_Main(Config* config, | ||||
|                   FileConsumer::SharedState* file_consumer_shared, | ||||
|                   TimestampManager* timestamp_manager, | ||||
|                   ImportManager* import_manager, | ||||
|                   ImportPipelineStatus* status, | ||||
|                   Project* project, | ||||
|                   WorkingFiles* working_files, | ||||
|                   MultiQueueWaiter* waiter) { | ||||
|   auto* queue = QueueManager::instance(); | ||||
|   // Build one index per-indexer, as building the index acquires a global lock.
 | ||||
|   ClangIndex index; | ||||
|  | ||||
| @ -29,14 +29,14 @@ void IndexWithTuFromCodeCompletion( | ||||
|     const std::string& path, | ||||
|     const std::vector<std::string>& args); | ||||
| 
 | ||||
| void IndexMain(Config* config, | ||||
|                FileConsumer::SharedState* file_consumer_shared, | ||||
|                TimestampManager* timestamp_manager, | ||||
|                ImportManager* import_manager, | ||||
|                ImportPipelineStatus* status, | ||||
|                Project* project, | ||||
|                WorkingFiles* working_files, | ||||
|                MultiQueueWaiter* waiter); | ||||
| void Indexer_Main(Config* config, | ||||
|                   FileConsumer::SharedState* file_consumer_shared, | ||||
|                   TimestampManager* timestamp_manager, | ||||
|                   ImportManager* import_manager, | ||||
|                   ImportPipelineStatus* status, | ||||
|                   Project* project, | ||||
|                   WorkingFiles* working_files, | ||||
|                   MultiQueueWaiter* waiter); | ||||
| 
 | ||||
| bool QueryDb_ImportMain(Config* config, | ||||
|                         QueryDatabase* db, | ||||
|  | ||||
| @ -173,7 +173,7 @@ struct InitializeHandler : BaseMessageHandler<Ipc_InitializeRequest> { | ||||
|       LOG_S(INFO) << "Starting " << config->indexerCount << " indexers"; | ||||
|       for (int i = 0; i < config->indexerCount; ++i) { | ||||
|         WorkThread::StartThread("indexer" + std::to_string(i), [=]() { | ||||
|           IndexMain(config, file_consumer_shared, timestamp_manager, | ||||
|           Indexer_Main(config, file_consumer_shared, timestamp_manager, | ||||
|                     import_manager, import_pipeline_status, project, | ||||
|                     working_files, waiter); | ||||
|         }); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user