Re: Problems with refactor tool based in compilerplugins.

2014-09-03 Thread Stephan Bergmann
On 09/02/2014 06:04 PM, Juan Picca wrote: Also, the plugin only refactor .cxx files but not the .hxx files. I try using rewriter-overwriteChangedFiles() for change the include files too, but it changes many included files at once and later the compiler fails to parse the rest of .cxx

Re: Problems with refactor tool based in compilerplugins.

2014-09-03 Thread Juan Picca
​​ Thanks Stephan ​. The refactor now works for me with two passes: 1. using only ​ COMPILER_PLUGIN_TOOL= ​myplugin for rewrite only the .cxx files ​2. using COMPILER_PLUGIN_TOOL=myplugin UPDATE_FILES=all ​for end the refactor rewriting the .hxx files ​​

Problems with refactor tool based in compilerplugins.

2014-09-02 Thread Juan Picca
Hi, i'm writting a clang compiler plugin for refactor code ( https://bugs.freedesktop.org/show_bug.cgi?id=81356) It rewrite some .cxx files before stop due errors with the refactored code and the code that is parsed. Also, the plugin only refactor .cxx files but not the .hxx files. I try using