eclipse-cdt / cdt-lsp

Eclipse CDT™ LSP Extensions for CDT
Eclipse Public License 2.0
27 stars 11 forks source link

Outline view - missing some elements #297

Open totocaca123 opened 8 months ago

totocaca123 commented 8 months ago

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 commented 8 months ago

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

dragoudin commented 8 months ago

I use eclipse cdt 2024.03

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 commented 8 months ago

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 commented 8 months ago

See also #234