[cfe-commits] PATCH: ASTMatchers-based refactoring callbacks to make common cases of refactoring easy

Daniel Jasper djasper at google.com
Fri Jul 13 08:53:29 PDT 2012


New patch attached:
- More tests.
- Fixed line length.
- Better integer literal.


On Fri, Jul 13, 2012 at 5:07 PM, Daniel Jasper <djasper at google.com> wrote:

> :-D. Will change before submitting ...
>
>
> On Fri, Jul 13, 2012 at 4:34 PM, Jean-Daniel Dupas <devlists at shadowlab.org
> > wrote:
>
>>
>> +//
>> +//  This will replace all integer literals with "2".
>> +//
>>
>> Isn't the universal answer 42 instead of 2 ? ;-)
>>
>> Le 13 juil. 2012 à 16:22, Daniel Jasper <djasper at google.com> a écrit :
>>
>> > With these callbacks, simple refactorings should be quite easy. It is a
>> starting point and can be extended/improved in many ways.
>> <refactoring-callbacks.patch>_______________________________________________
>> > cfe-commits mailing list
>> > cfe-commits at cs.uiuc.edu
>> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>> -- Jean-Daniel
>>
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120713/8f14112f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: refactoring-callbacks.patch
Type: application/octet-stream
Size: 12363 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120713/8f14112f/attachment.obj>


More information about the cfe-commits mailing list