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

Qt Creator cannot be compiled on Clang 9

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 4.9.1
    • Fix Version/s: None
    • Component/s: Building Qt Creator
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      When LLVM-Clang version 9 is used to compile Qt Creator there is a problem with ClangFormat plugin: line 63 of /src/plugins/clangformat/clangformatutils.cpp:

      style.AllowShortIfStatementsOnASingleLine = false;
      

      produces "uncompatible type assignation" error.

       
      Now the correct workaround is to replace that line to the following:

      style.AllowShortIfStatementsOnASingleLine = clang::format::FormatStyle::SIS_Always;
      

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                kosjar Nikolai Kosjar
                Reporter:
                twdragon Andrei Vukolov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes