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

Qt Creator cannot be compiled on Clang 9

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.9.1
    • Building Qt Creator
    • None
    • Linux/X11

      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;
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes