I know there are many questions about this but non seem to be what I need or are not clear enough.
I'm using visual studio code for my c++ project. At first I was using intellisense which worked fine except for the fact that I was missing the call hierarchy. I heard that with the visual studio clangd extension you could have this call hierarchy and I indeed do have it, but now my *.inl files are not parsed: the outline tab in vs states No symbols found in document 'name.inl'
, if I try ctrl+click to get to a function or variable definition it just ends up at the top of the inline file.
I found this to add to clangd to recognize an *.inl file as header file, but I don't know where to find the Types.cpp file.
I also found this which says to add the files to the compile_commands.json
but that also doesn't work I would say for two reasons: 1) I'm using CMAKE_EXPORT_COMPILE_COMMANDS
to generate the compile_commands.json
2) there are too many *.inl files in the project to all add them manually.
I also found this which looks like the clangd extension source code but again I don't know where to find the file extension.ts
Any help for making it such that my *.inl files are recognized is highly appreciated (and please be specific since it appears I'm a nooby and do not understand much surrounding this topic).
P.S. I'm not interested in compilation that works fine, as far as I understood we are not using clangd for that but gcc via CMake.