Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator syntax checking C++14

Qt Creator syntax checking C++14

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 4.9k Views
  • 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 Offline
    S Offline
    Sarkurd
    wrote on last edited by Sarkurd
    #1

    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
    0
    • M Offline
      M Offline
      mcosta
      wrote on last edited by
      #2

      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
      0
      • M mcosta

        Hi,

        I don't think Qt Creator supports C++14.
        BTW I don't know if is possible to disable syntax checking

        S Offline
        S Offline
        Sarkurd
        wrote on last edited by
        #3

        @mcosta Thanks for the quick reply.

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

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved