emacs-ccls icon indicating copy to clipboard operation
emacs-ccls copied to clipboard

c++17, std::optional

Open lromor opened this issue 5 years ago • 1 comments

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?

lromor avatar Aug 26 '20 15:08 lromor

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.

lromor avatar Aug 26 '20 21:08 lromor