p00f / clangd_extensions.nvim

Clangd's off-spec features for neovim's LSP client. Use https://sr.ht/~p00f/clangd_extensions.nvim instead
MIT License
495 stars 18 forks source link

Incomplete type hierarchy #65

Open hongxuchen opened 2 months ago

hongxuchen commented 2 months ago

The type hierarchy reported by the plugin seems incomplete. For example, in terms of NamedDecl inside Decl.h,it reports

 • NamedDecl: Class
   Parents:
    • Decl: Class
   Children:
    • ValueDecl: Class
      Children:
       • EnumConstantDecl: Class
       • DeclaratorDecl: Class
         Children:
          • VarDecl: Class
          • FunctionDecl: Class
          • FieldDecl: Class
          • MSPropertyDecl: Class
          • NonTypeTemplateParmDecl: Class
...

But it will not expand VarDecl which has subclasses such as ParmVarDecl etc.

p00f commented 2 months ago

Can you reproduce this in vscode? I think I properly present whatever the server provides

p00f commented 2 months ago

I don't have a clone of the llvm repo at hand now so I would appreciate if you yourself could repro this in vscode

hongxuchen commented 2 months ago

Can you reproduce this in vscode? I think I properly present whatever the server provides

It is reproducible when using neovim. I don't have vscode at hand. I will ask my workmates to check whether it occurs in vscode.