-
Notifications
You must be signed in to change notification settings - Fork 252
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
rtags-flycheck doesn't use the correct c++ standard, aka c++14 #1095
Comments
Hmm, this becomes more subtle.
Can I make And how can I jump to the error position (row, column) instead of just row ? |
Can you paste one of the commands from your compilation database? I believe rtags simply forwards those commands (which should have the standard version listed) to clang, which then finds any errors. |
sure
|
According to this |
@collinjackson93 hi, sadly it still doesn't work. |
I attempted to reproduce on my system, but had issues getting everything set up to build ClickHouse. I just noticed that you're using Clang 4.0, which doesn't have full support for C++17. As a test, can you try using If that doesn't work, we should be able to quickly put together a small test program that calls |
OK, I've setup a
|
That looks like an error from libclang itself, not rtags. I wonder if that assertion started failing in clang 5 or if you just got lucky with clang 4. You might want to report that to llvm. As for your initial problem with c++14 support, can you try compiling the following simple program using #include <memory>
#include <iostream>
int main()
{
auto a = std::make_unique<int>(10);
std::cout << *a << std::endl;
return 0;
} If you can, I would try compiling with clang 4 since you ran into a different error with clang 5. I was unable to compile it on one of my computers running clang 5 (most likely because the libc++ version is too old), however, it compiled successfully on my other computer (also running clang 5). If it compiles using clang, try running it through rtags. I did |
It compiles.
It also works.
Hmm, i got nothing after running |
I even tried https://github.com/llvm-project/llvm-project-20170507 from which rtags still cannot parse clickhouse correctly. |
OK, I resolved this by following steps,
Hope it help. Cheers! |
Please mark appropriate
Problem description
rtags-flycheck warns
std::enable_if_t
isn't declared, which should be fine inc++14
.Environment
Centos 7
clang 4.0
The text was updated successfully, but these errors were encountered: