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

LanguageServers/Cpp: Declarations inside namespaces are globally visible

This includes declarations inside namespaces in the globally visible
declarations of a cpp document.
This commit is contained in:
Itamar 2021-03-23 11:49:03 +02:00 committed by Andreas Kling
parent b5cab861e3
commit 6054a418e5
2 changed files with 23 additions and 7 deletions

View file

@ -96,7 +96,8 @@ private:
RefPtr<Type> type;
};
Vector<PropertyInfo> properties_of_type(const DocumentData& document, const String& type) const;
NonnullRefPtrVector<Declaration> get_declarations_in_outer_scope_including_headers(const DocumentData& document) const;
NonnullRefPtrVector<Declaration> get_global_declarations_including_headers(const DocumentData& document) const;
NonnullRefPtrVector<Declaration> get_global_declarations(const ASTNode& node) const;
const DocumentData* get_document_data(const String& file) const;
const DocumentData* get_or_create_document_data(const String& file);