Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22872

Compiler options including spaces break clang code model on CMake projects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.9.2
    • Fix Version/s: None
    • Labels:
    • Environment:
      Windows 10, MSVC 2017, CMake 3.15
    • Platform/s:
      Windows

      Description

      When using compiler options with a space between the option and its argument, clang code model breaks (see screenshots about code model details).

      Code highlighting also stops working, and code navigation with Ctrl+Click is partially broken on bigger projects.

      The root problem seems to be the fact that toolkit defines are somehow lost when using compiler options with spaces, and Qt Creator doesn't infer the right C++ version for the project anymore.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            hunger Tobias Hunger
            Reporter:
            alessandro.ambrosano Alessandro Ambrosano
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes