<div class="gmail_quote">2012/2/17 Henry Miller <span dir="ltr"><<a href="mailto:hank@millerfarm.com">hank@millerfarm.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thursday 16 February 2012 12:14:24 Milian Wolff wrote:<br></div>
Extract method refactoring for C++.  I want to highlight a section of code,<br>
select extract method, and have it turned into a new function (either class<br>
private, or in an anonymous namespace are the normal case, but sometimes other<br>
scopes are desirable).  You need to pass in any local variables as parameters.<br>
<br>
Ideally before it does this, it would allow me to select constants within the<br>
code that could be passed in as well.  Probably not possible, in GSOC, but the<br>
ultimate ideal would be look through my class and find other functions that<br>
have the same logic that can not call the new function.  If there is time,<br>
look at other IDEs and see what refactorings they offer and implement some of<br>
them as well.<br></blockquote></div>If I may make a suggestion, I would support things like that. For me the only thing missing are some refactoring tools. They exist to some degree (move to source, create accessors), but I'm sure that could be expanded. For example, creating and working with d-pointers could be made much simpler. Same for code generation, it should be easy to add a private class when creating a class, and add properties to the private class with public accessors. <br>
<br>I'm sure there are more examples where code generation would be useful. Would anyone be willing to mentor for this?<br>