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

Indent size configured value not obeyed by the colon preceding attribute instantiation in a constructor definition

    XMLWordPrintable

Details

    • 8215a1d0c04a7c69ee69ef95091fff8d401871b4

    Description

      The colon preceding the attribute initialisation in a constructor definition is always aligned 4 spaces to the right, instead of using the indent size configured by the user.

      Example:

      Foo::Foo(const int pBar)
          : bar(pBar)
      {
      }
      

      is wrong, while the following would be right if the configured indent size (2 in this case) was used:

      Foo::Foo(const int pBar)
        : bar(pBar)
      {
      }
      

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            tibirna Cristian Tibirna
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes