MaskRay / ccls

C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Apache License 2.0
3.73k stars 255 forks source link

Setting up ccls with Juce? #823

Closed youshy closed 3 years ago

youshy commented 3 years ago

Observed behavior

ccls is unable to find the headers for Juce - it works perfectly fine for Xcode. Juce headers are under ~/Juce/modules - how should I import them in .ccls file?

.ccls file:

clang++
%h -x 
%h c++-header 
%cpl -std=c++17
-isystem
/Users/<myusername>/JUCE/modules/

The project is created with Projucer -> more info about Juce here

Expected behavior

Should find the headers without any issues.

System information

youshy commented 3 years ago

Managed to get it working by installing bear and switching the output from Projucer to Linux makefile.

If anyone knows any better way, please let me know!