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

Weird indentation in C++11 nested templates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 3.1.0-beta
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 13.10, qt creator checked out d376c2ad2cbf173f9b624328b3d80544e8e9d0fe

    Description

      This snippet exhibits the bad behavior:

      #include <vector>
      #include <tuple>
       
      std::vector<std::tuple<unsigned int, double>> get_latencies(const char *file_name)
      {
       
      }
      

      text inside the block is aligned to the function name.
      The problem disappears when a space is inserted between braces, like this:

      std::vector<std::tuple<unsigned int, double> > get_latencies(const char *file_name)
      {
       
      }
      

      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
              akappa Andrea Farruggia
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes