Details
-
Suggestion
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
None
-
None
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
- duplicates
-
QTCREATORBUG-6199 A way to tell editor to automatically reorder method definitions in .cpp file to follow the order of method declarations in .h file
- Open