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

[Reg 4.15->5.0] ClangFormat messes up indentation of wizard generated files

    XMLWordPrintable

Details

    • 8cc4bbe4d823053c13d1e0c46fb25987d1ab18bc (qt-creator/qt-creator/5.0)

    Description

      • Run Qt Creator with the ClangFormat plugin, e.g. qtcreator -tcs -load ClangFormat
      • set up a license template with some comment block in Options > C++ > File Naming
      • create a C++ file/class/project
      • the indentation of the comment and some other parts are messed up

      See attached file. This works fine when either turning off ClangFormat, or not having the comment block/license template. Works also fine with Qt Creator 4.15.

      Attachments

        1. main.cpp
          2 kB
          Eike Ziller
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes