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

[clang-format] 'tab width' ignored

    XMLWordPrintable

Details

    Description

      when using the clang-format plugin, the tab width is not taken into account properly when parsing system headers: i have set it to 8 in (a) code style/clangformat tab, (b) code style general and (c) text editor /behaviour, but nevertheless, they are set to 4 spaces

      i'm seeing this on linux with libstdc++ (which is a bit annoying as libstdc++ uses a mix or tabs and spaces which assume tabs are 8 spaces).
      the only workaround i could find was putting a .clang-format file into `/usr/include/c++`, which specifies a tab width of 8. but i'd assume that the clang-format is somehow not reading the settings from the default style

      Attachments

        Issue Links

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

          Activity

            People

              artem.sokolovskii Artem Sokolovskii
              timblechmann tim blechmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes