Replies: 3 comments 12 replies
-
If you have C and C++ files in the same project, the default spec in
Does this perfectly.
I don't see that and you haven't explained what you do to make that happen, but I've just tried a simple directory with a C and C++ file, which in my system are visited in |
Beta Was this translation helpful? Give feedback.
-
Thank you. As long as I can figure out the proper way to call the function in I thought |
Beta Was this translation helpful? Give feedback.
-
I totally understand! But I would like to call a function that uses But if that doesn't work, I'll abandon any existing |
Beta Was this translation helpful? Give feedback.
-
It's not uncommon for projects to be a mixture of C and C++, which naturally leads to files of the project being opened in either c-mode or c++-mode. Sometimes e.g. Objective-C is also in the mix.
However I cannot find out how to specify a server such that the instance is shared between those modes. eglot seems to want to fire up a new instance for each mode. That means navigating between e.g. C and C++ files doesn't work. I'm relatively sure that clangd itself can do this, though (I might be wrong)...
How can I fix this?
Beta Was this translation helpful? Give feedback.
All reactions