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

Indentation fails after function declaration with complex auto return type

XMLWordPrintable

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

      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!"
                                                      }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes