cppit / jucipp

A lightweight & cross-platform IDE supporting the most recent C++ standards. This project has moved to https://gitlab.com/cppit/jucipp.
https://gitlab.com/cppit/jucipp
MIT License
883 stars 98 forks source link

c++17 features and autocomplete #359

Open underdoeg opened 6 years ago

underdoeg commented 6 years ago

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 commented 6 years ago

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))

eidheim commented 6 years ago

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.

underdoeg commented 6 years ago

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