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

Auto-indent works incorrectly with C++11 list initialization

    XMLWordPrintable

Details

    • d4c31cef742487fae4f03a4b871872c5e4e08ab1 (qt-creator/qt-creator/master)

    Description

      See the code snippet:

      static void f()
      {
      	struct A {int x;};
      	QList<A> list;
      	list << A{1 << 1};
      	list << A{2};
      }
      

      Auto-indent makes it as

      static void f()
      {
      	struct A {int x;};
      	QList<A> list;
      	list << A{1 << 1};
      			list << A{2};
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              hellclown Dmitry Yelizarov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes