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

Indentation fails after function declaration with complex auto return type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 3.6.1
    • C/C++/Obj-C++ Support
    • None

    Description

      After inserting the following in a C++ source file:

      #include <memory>
      #include <vector>
      
      auto foo() -> std::vector<std::unique_ptr<int>>
      {
      

      The indentation for the rest of the file is broken.

      auto foo() -> std::vector<std::unique_ptr<int>>
      {
                                                      std::cout << "Look, ma, I'm over here!"
                                                      }
      

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              anorm77 Anders Norman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes