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

Incorrect/inconsistent indentation in clang format

XMLWordPrintable

    • Linux/X11

      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).

       


        1. image-2024-01-11-21-53-33-387.png
          111 kB
          Danila Malyutin
        2. image-2024-01-11-21-54-06-663.png
          75 kB
          Danila Malyutin
        3. image-2024-01-11-21-55-38-000.png
          61 kB
          Danila Malyutin
        4. screenshot-1.png
          55 kB
          Danila Malyutin
        5. .llvm-format
          6 kB
          Artem Sokolovskii
        6. project-settings.png
          33 kB
          Danila Malyutin
        7. preferences.png
          89 kB
          Danila Malyutin
        8. project-settings.png
          37 kB
          Danila Malyutin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes