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

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

      #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;
      }
      

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

            kosjar Nikolai Kosjar
            sungmin817 Sungmin Hwang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes