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

indentation is wrong with c++17 structured binding

XMLWordPrintable

    • f99094a0b837e46c38ce0c7b93388ebb7f45d216

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes