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

Bad indentation [Regression]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • Qt Creator 2.1.0-rc1
    • Qt Creator 2.1.0
    • C/C++/Obj-C++ Support
    • None
    • Published Linux-32 Snapshot 2.0.90 as of 2010-09-17

    Description

      There are plenty of C++0x features not yet supported in the parser, and those are marked as syntax errors. However, in 2.0.1. I can live with that, because auto-indent works fine, but in 2.0.90 it's all messed up. Auto-indent now looks like this:

      void ycon1( Y* y )
      {
      	vector<X*> xs = y->xset_up();
      	for( X* p : xs ){
      		auxfind( p->yset_down(), y );
      }
      }
      	    
      	    void xcon1(X* x)
      	{
      	    vector<Y*> vy = x->yset();
      

      The code compiles fine with g++ 4.6. Because auto-indent is an essential feature of a code editor, this makes the new version of qt-creator unusable for me.

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            hexagon Thomas Kunert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes