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

indentation is wrong with c++17 structured binding

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.4.1
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None

      Description

      The indentation is not correct in the following situation after type the return in the last line:

      struct Foo
      {
          int i;
          char c;
          double d;
      };

      int main()
      {
          Foo f { 1, 'a', 2.3 };
          auto [ i, c, d ] = f;

                   ^

                   | YOUR CURSOR IS HERE

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                kosjar Nikolai Kosjar
                Reporter:
                zhou13 Yichao Zhou
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes