1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

LibCpp: Rename m_definitions=>m_preprocessor_definitions

This commit is contained in:
Itamar 2021-05-07 14:46:11 +03:00 committed by Andreas Kling
parent de9be7cd70
commit 5c42dc854d
3 changed files with 6 additions and 6 deletions

View file

@ -146,7 +146,7 @@ Vector<GUI::AutocompleteProvider::Entry> ParserAutoComplete::autocomplete_name(c
}
}
for (auto& preprocessor_name : document.parser().definitions().keys()) {
for (auto& preprocessor_name : document.parser().preprocessor_definitions().keys()) {
if (preprocessor_name.starts_with(partial_text)) {
suggestions.append({ preprocessor_name.to_string(), partial_text.length(), GUI::AutocompleteProvider::CompletionKind::PreprocessorDefinition });
}
@ -489,7 +489,7 @@ OwnPtr<ParserAutoComplete::DocumentData> ParserAutoComplete::create_document_dat
auto included_document = get_or_create_document_data(document_path_from_include_path(include));
if (!included_document)
continue;
for (auto item : included_document->parser().definitions())
for (auto item : included_document->parser().preprocessor_definitions())
all_definitions.set(move(item.key), move(item.value));
}