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

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

XMLWordPrintable

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

      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};
      }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes