mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +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()) {
|
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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue