Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Creator syntax checking C++14

    General and Desktop
    3
    4
    4640
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Sarkurd last edited by Sarkurd

      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; });
      
      1 Reply Last reply Reply Quote 0
      • M
        mcosta 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

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        S 1 Reply Last reply Reply Quote 0
        • S
          Sarkurd @mcosta last edited by

          @mcosta Thanks for the quick reply.

          I hope at least there is a quick fix till they add support.

          1 Reply Last reply Reply Quote 0
          • Chris Kawa
            Chris Kawa Moderators last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post