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

Indentation rules break down after decomposition declaration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.12.4
    • C/C++/Obj-C++ Support
    • None
    • Linux/X11

      After inserting a decomposition declaration (Added in C++17. Also known as structured binding declaration) the editor doesn't respect the indentation rules right after that line.

      Steps to reproduce:

      Result

      1. Insert these lines somewhere in code: 
        int a[2] = {1,2}; 
        auto [x, y] = a;
      2. Stand at the end of the second line and pres Enter. 

      Result:
       The cursor jumps to the next line without respecting the indentation rules (set in settings).

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

            kandeler Christian Kandeler
            otar Otar Magaldadze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes