From 1c3c043cd386c2a094d335b798f5d621234f161e Mon Sep 17 00:00:00 2001 From: Itamar Date: Fri, 21 May 2021 15:11:34 +0300 Subject: CppLanguageServer: Rename all_definitions=>preprocessor_definitions --- .../HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Userland') diff --git a/Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp b/Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp index 8316fd8af4..286b0ab6e5 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp +++ b/Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp @@ -542,19 +542,19 @@ OwnPtr CppComprehensionEngine::create_docu document_data->preprocessor().set_ignore_unsupported_keywords(true); document_data->preprocessor().process(); - Preprocessor::Definitions all_definitions; + Preprocessor::Definitions preprocessor_definitions; for (auto item : document_data->preprocessor().definitions()) - all_definitions.set(move(item.key), move(item.value)); + preprocessor_definitions.set(move(item.key), move(item.value)); for (auto include : document_data->preprocessor().included_paths()) { auto included_document = get_or_create_document_data(document_path_from_include_path(include)); if (!included_document) continue; for (auto item : included_document->parser().preprocessor_definitions()) - all_definitions.set(move(item.key), move(item.value)); + preprocessor_definitions.set(move(item.key), move(item.value)); } - document_data->m_parser = make(document_data->preprocessor().processed_text(), filename, move(all_definitions)); + document_data->m_parser = make(document_data->preprocessor().processed_text(), filename, move(preprocessor_definitions)); auto root = document_data->parser().parse(); -- cgit v1.2.3