clangd shows multiple imports with -G Xcode

Answered

Hi everyone. I have trouble to use the project generated with Xcode generator on the clion 2019.3. Clandg makes wrong checks and shows multiple symbols for import for std classes.

Here some example code shows the problem:

#include <ctime>

int main()
{
auto var = std::time(nullptr);
return 0;
}

In the clion, this code looks like this:

and this

Can anyone help me to fix this trouble?

Cmake options is: -G "Xcode"

cmake version: 3.15

OSX version: 10.15.3

XCode Version 11.3.1 (11C504)

0

Please sign in to leave a comment.