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

The use of conditional operator inside the uniform initialization breaks the auto indentation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • Qt Creator 3.0.0-rc1
    • C/C++/Obj-C++ Support
    • None
    • gcc mingw-64 4.8 / windows7

    Description

      #include <iostream>
      
      using namespace std;
      
      int main(){
      	cout << "haha\n";
      	bool a{true};
      	int j{3},k{5};
      	int i{a? j : k};  //<-- After this line, the auto-indentation doesn't work correctly.
      		  cout << i << endl;
      }
      

      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
              sungmin817 Sungmin Hwang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes