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

Indentation rules break down after decomposition declaration

    XMLWordPrintable

Details

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

    Description

      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).

      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
              otar Otar Magaldadze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes