Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline view - missing some elements #297

Open
totocaca123 opened this issue Mar 9, 2024 · 4 comments
Open

Outline view - missing some elements #297

totocaca123 opened this issue Mar 9, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@totocaca123
Copy link

When I open a header file, outline is empty. For source file, I see only definitions. Declarations, types, defines... are not visible in outline

@ghentschke
Copy link
Contributor

To find out the cause, please give me some more information:

  • Which clangd version is beeing used and on which OS do you run eclipse?
  • What kind of CDT project are you using (cmake or managed build project)?
  • Can you please provide some screen shots?

@dragoudin
Copy link

dragoudin commented Mar 18, 2024

I use eclipse cdt 2024.03

  • clangd version 18.1.0rc
    Features: windows
    Platform: x86_64-pc-windows-msvc

I use a cmake4eclipse project

I find function definitions/declarations, variable definitions/declarations... types definitions/declarations but I don't see file includes and macros (#define ...) in outline
Here is a screenshot
image

Here is source file with lot of defines
S32K144_features.h.txt

Moreover, for typedef enum, the anonymous alias is displayed after the typedef (see screenshot) while in cdt outline and in source code, order is reversed

@ghentschke
Copy link
Contributor

but I don't see file includes and macros (#define ...) in outline

That's because we use the language independent outline view from LSP4E project. Since macros are C/C++ specific they are not supported (yet). Same for includes.

@ghentschke
Copy link
Contributor

See also #234

@ghentschke ghentschke added the enhancement New feature or request label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants