mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:08:11 +00:00
CppLanguageServer: Autocomplete namespaces
This commit is contained in:
parent
f89f4af0b3
commit
f9b8e9c01c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue