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

Qt Creator cannot be compiled on Clang 9

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.9.1
    • Building Qt Creator
    • None
    • 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

              kosjar Nikolai Kosjar
              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