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

Lambda functions are indented incorrectly

    XMLWordPrintable

Details

    • 3f9427200bae1a84097b221839988d4d6c886fe7 (qt-creator/qt-creator/master)

    Description

      Consider the following lambda function:

          hello([]() -> void {
              cout << "world";
          });

      When I use Ctrl+I, this is incorrectly indented as follows:

      hello([]() -> void {
                    cout << "world";
                });
      

      But I would prefer it to be indented as it was.

       

      NOTE: the shorter lambda syntax (without the arrow) is indented correctly:

          hello([] {
              cout << "world";
          });
      

       

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            timur.kristof Timur Kristóf
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes