Skip to content

c++17, std::optional #100

@lromor

Description

@lromor

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions