Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c++17, std::optional #100

Open
lromor opened this issue Aug 26, 2020 · 1 comment
Open

c++17, std::optional #100

lromor opened this issue Aug 26, 2020 · 1 comment

Comments

@lromor
Copy link

lromor commented Aug 26, 2020

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 lromor closed this as completed Aug 26, 2020
@lromor lromor reopened this Aug 26, 2020
@lromor
Copy link
Author

lromor commented Aug 26, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant