mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 11:06:10 +00:00
CppLanguageServer: Autocomplete namespaces
This commit is contained in:
parent
f89f4af0b3
commit
f9b8e9c01c
Notes:
sideshowbarker
2024-07-18 18:05:05 +09:00
Author: https://github.com/itamar8910
Commit: f9b8e9c01c
Pull-request: https://github.com/SerenityOS/serenity/pull/7153
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