Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator syntax analyzer has been failed on modern "for" syntax
Forum Updated to NodeBB v4.3 + New Features

Qt Creator syntax analyzer has been failed on modern "for" syntax

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 246 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.
  • R Offline
    R Offline
    r3d9u11
    wrote on last edited by r3d9u11
    #1

    Hello.

    I'm using QtCreator 4.15.0 with disabled ClangCodeModel, because it makes autocompletion and syntax analyzing broken for Unreal Engine 4 projects.
    So, with disabled ClangCodeModel all work perfectly.

    But, I've faced with another trouble: on C++17 projects built-in syntax analyzer is failing on modern "for" (CMake project marked as CXX17 standard):

    alt text

    Does anybody have an idea how to fix it?

    Thanks!

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @r3d9u11 said in Qt Creator syntax analyzer has been failed on modern "for" syntax:

      Does anybody have an idea how to fix it?

      Provide a patch to the legacy QtCreator code model so it knows about c++17 structured bindings.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1

      • Login

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