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

indentation is wrong with c++17 structured binding

    XMLWordPrintable

Details

    • f99094a0b837e46c38ce0c7b93388ebb7f45d216

    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

              kandeler Christian Kandeler
              zhou13 Yichao Zhou
              Votes:
              24 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes