Qt Creator syntax checking C++14
-
wrote on 10 Apr 2015, 13:24 last edited by Sarkurd 4 Oct 2015, 13:26
Hi
Seems Qt Creator 3.3.2, 3.4 give red underline syntax checking for C++14.
Is there a way to fix that or disable it?std::vector<int> v {1 ,4 , 7}; int sum=8'000'000; std::for_each(v.begin(), end(v), [&Mysum = sum] (int x){ Mysum+=x; });
-
wrote on 10 Apr 2015, 13:30 last edited by
Hi,
I don't think Qt Creator supports C++14.
BTW I don't know if is possible to disable syntax checking -
Hi,
I don't think Qt Creator supports C++14.
BTW I don't know if is possible to disable syntax checking -
You might want to try the clang code model.
Go to Help -> About Plugins and enable ClangCodeModel and restart Creator.
Then go to Tools -> Options -> C++ -> Code Model and switch model for C++ to clang. Restart Creator again.It's a little slower and has some issues too. It still shows squiggles at the
8'000'000
, but at least the lambda is recognized correctly. It will get better as time flies.
4/4