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

Indentation error after auto [] word

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.13.2
    • None
    • Linux (Ubuntu 18.04)
    • All

      Qt Creator editor is doing the wrong indentation after auto unwrap. It seems to be considering this a lambda. The indentation changes adding 12 spaces (I'm using 4 spaces to indent)

      Example of wrong indentation

       

          for (const QVariant &v : l) {
              auto [account, ns] = parser.parse_namespace_key(v.toString());
                      QTreeWidgetItem *item = new QTreeWidgetItem(); // <-- Wrong indentation
      

       

       

       

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

            kandeler Christian Kandeler
            thiedri Thiago Massari Guedes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes