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

auto indent wrong when using auto return type [C++][Editor][Mac OSX]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 4.5.1
    • Editors
    • None
    • Mac OSX Sierra/High Sierra

    Description

      [C++] Auto indent is wrong when writing member function body if this member function is declared with 'auto' return type with trailing actual return type at the end, e.g.

      auto TestClass::foo() -> std::vector<int> {

        // auto indent here will be wrong

      }

      Attachments

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

        Activity

          People

            davschul David Schulz
            zyf674 Yifu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes