summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2021-05-21 15:11:34 +0300
committerAndreas Kling <kling@serenityos.org>2021-05-22 15:52:11 +0200
commit1c3c043cd386c2a094d335b798f5d621234f161e (patch)
treee8b22e01abc494c96bbbd3c1f5ad25aa16627d4c /Userland
parent1f96d9b03ae511beec4ce5eea4ce216d0ca2bf3e (diff)
downloadserenity-1c3c043cd386c2a094d335b798f5d621234f161e.zip
CppLanguageServer: Rename all_definitions=>preprocessor_definitions
Diffstat (limited to 'Userland')
-rw-r--r--Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp8
1 files changed, 4 insertions, 4 deletions
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::DocumentData> 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<Parser>(document_data->preprocessor().processed_text(), filename, move(all_definitions));
+ document_data->m_parser = make<Parser>(document_data->preprocessor().processed_text(), filename, move(preprocessor_definitions));
auto root = document_data->parser().parse();