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

C++ clang code style doesn't remember settings

    XMLWordPrintable

Details

    • Windows
    • 80b4e6a910 (qt-creator/qt-creator/master) 80b4e6a910 (qt-creator/tqtc-qt-creator/master) 80b4e6a910 (qt-creator/qt-creator/9.0)

    Description

      The way to find the error.

      Go to the Tools->Options...>C++>Code style section
      copy "Qt(built-in)" settings
      click "Edit..." button
      go to the ClangFormat tab
      change some option
      (for example select AlignConsecutiveDeclarations as true)
      then click Ok button in Dialog and another Ok in Options Dialog.

      The style works, but if we open this settings to change another clang format option, we will see that AlignConsecutiveDeclarations became Default, and not true as we have selected before. And after changing another option we will close the dialog and will see that the first selected format option (AlignConsecutiveDeclarations) has lost and doesn't work.

      Attachments

        1. 1.png
          1.png
          49 kB
        2. 2.png
          2.png
          48 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            artem.sokolovskii Artem Sokolovskii
            alexnevskiy Alex Nevskiy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes