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

Reordering class method definition

XMLWordPrintable

      it should be nice to have an option on the class declaration symbol to order method definition like the method declaration.

      It should improve code readability

      struct Foo \{ //.h (Right click, Order Method Definition)
      void tic();
      void bar();
      void glu();
      };
      
      //.cpp wrong order
      Foo:tic() \{ ... } // ok
      Foo::glu() \{ ...} //should be after Foo::bar for 'cosmetic'
      Foo::bar() \{ ...}
      
      

       
      And for multiple class declaration in the same file, it should also reorder accordingly.

      //.h
      strcut A {
       void foo();
       };
      strcut B { // another option, Move B declaration first
       void foo();
      };
      
      .cpp
      B::foo() {}
      A::foo() {} // should be first
      

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

            kandeler Christian Kandeler
            phi Philippe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes