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

C++ Code Style Custom settings import - Wrong import of "tabs and indentation"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 15.0.0
    • None
    • fde4f4653 (master)

    Description

      When I import a C++ / code style / clang format, the settings for tabs and indentations are not adopted by the file. The ‘default’ QtCreator settings are set.

      Extract from clang-format file:

         <value type="int" key="IndentSize">2</value>
         <value type="int" key="PaddingMode">2</value>
         <value type="bool" key="SpacesForTabs">true</value>
         <value type="int" key="TabSize">2</value>

      Imported settings in QtCreator:

      Exporting the clang-format settings seems to be correct.

      I use the ‘Build-In-Indenter’ for exporting and importing.

      Here my complete "exportet" clang-file: QTCreator Hamilton VisionTeam Qt++ StyleGuide.clang-format

      Attachments

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

        Activity

          People

            ansemkiv Andrii Semkiv
            sgluekler Stefan Glükler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes