vscode-clangd icon indicating copy to clipboard operation
vscode-clangd copied to clipboard

Objective-C/C++ support

Open blacktop opened this issue 3 years ago • 4 comments

I believe clangd can support Objective-C++, but when I try to "goto definition" with the extension it does nothing.

Thanks!

blacktop avatar Sep 29 '22 02:09 blacktop

Can you provide more details please? The following works for me, saved as test.mm:

@class Foo;
Foo *x; // go to def on Foo

sam-mccall avatar Sep 29 '22 03:09 sam-mccall

I just tried on checkSettingsControlledByCaptivePortalMode in WebKit/WebKit/Tools/TestWebKitAPI/Tests/WebKitCocoa/ProcessSwapOnNavigation.mm it's defined in the same file and a little pop-up says 'No definition found for checkSettingsControlledByCaptivePortalMode

blacktop avatar Sep 29 '22 04:09 blacktop

I am getting jump to def working on other mm files so this might be a issue with Test files?

blacktop avatar Sep 29 '22 04:09 blacktop

Most likely a configuration issue. Sharing clangd logs may allow diagnosing the issue further.

HighCommander4 avatar Sep 29 '22 04:09 HighCommander4