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

Reordering class method definition

    XMLWordPrintable

Details

    Description

      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
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes