emacs-ccls
emacs-ccls copied to clipboard
c++17, std::optional
Hi,
I'm testing ccls on a c++17 project. I wrote the following:
clang++
-std=c++2a
in the .ccls.
The include file #include <optional> is correctly found and autocompleted, but for some reason I'm unable to access the optional object in the namespace (no member named optional in the namespace std).
Notice that I can manually call clang++ with those options and compiles without errors.
Any ideas on how to solve this?
I'm using a fresh doom emacs. I tested if my .ccls was picked up at all using a macro definition, and it seems it's not.
I guess the issue is that the .ccls is not read. Is there a way to debug this? I can't really understand how to run diagnostic on this problem.