CppLanguageServer: Autocomplete namespaces

This commit is contained in:
Itamar 2021-05-09 21:12:00 +03:00 committed by Andreas Kling
commit f9b8e9c01c
Notes: sideshowbarker 2024-07-18 18:05:05 +09:00

View file

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