jucipp icon indicating copy to clipboard operation
jucipp copied to clipboard

c++17 features and autocomplete

Open underdoeg opened this issue 7 years ago • 3 comments

I use std::shared_mutex in my project. And it compiles fine. But autocomplete does not find the type and declares my whole class as useless. I dont really know what you use to generate the autocompletion (ctags / libclang?) Is there a way to tell the engine to use those features or does the it not support 17 yet?

ATM I set the compiler flags via cmake

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

underdoeg avatar Jan 24 '18 13:01 underdoeg

Ah just read C++17 features depending on libclang version I am on arch linux so libclang should be fairly recent. (clang version 5.0.1 (tags/RELEASE_501/final))

underdoeg avatar Jan 24 '18 14:01 underdoeg

Yes, llvm's libclang is not yet 100% c++17 feature complete it seems. Hopefully this will change when llvm 6.0 is released in February. One can also try out the svn/git version of llvm, and of course then report found issues to the llvm project.

eidheim avatar Jan 24 '18 16:01 eidheim

ok, I'll try again in february. installing git versions of such crucial libraries is a little too risky on my work computer...

underdoeg avatar Jan 24 '18 16:01 underdoeg