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

Weird indentation in C++11 nested templates

XMLWordPrintable

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

      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)
      {
       
      }
      

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

            kosjar Nikolai Kosjar
            akappa Andrea Farruggia
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes