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

Incorrect/inconsistent indentation in clang format

    XMLWordPrintable

Details

    • Linux/X11

    Description

      After updating to 12, I've noticed that for some reason my code styler switched to 4 spaces for indentation, even though it's an LLVM project with clang-format style using 2 spaces.
      It looks like for some reason the indentation settings on a "general" tab override clang format supplied indentation options. The code formatting on ClangFormat tab looks correct, but if I enable checkbox on "override .clang-format" file it switches to incorrect indentation (disabling and enabling it back can sometimes restore correct indentation, but that has no effect on how QtC wants to format the code in the editor).

       


      Attachments

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

        Activity

          People

            artem.sokolovskii Artem Sokolovskii
            flashmozzg Danila Malyutin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes