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

[clang-format] 'tab width' ignored

XMLWordPrintable

      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

        For Gerrit Dashboard: QTCREATORBUG-28997
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes