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

CppLanguageServer: Autocomplete namespaces

This commit is contained in:
Itamar 2021-05-09 21:12:00 +03:00 committed by Andreas Kling
parent f89f4af0b3
commit f9b8e9c01c

View file

@ -126,6 +126,9 @@ Vector<GUI::AutocompleteProvider::Entry> ParserAutoComplete::autocomplete_name(c
if (decl.is_function()) {
add_name(((Cpp::FunctionDeclaration&)decl).m_name);
}
if (decl.is_namespace()) {
add_name(((Cpp::NamespaceDeclaration&)decl).m_name);
}
}
Vector<GUI::AutocompleteProvider::Entry> suggestions;