Problems with refactor tool based in compilerplugins.

Juan Picca jumapico at gmail.com
Tue Sep 2 09:04:53 PDT 2014


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

    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 files.

Someone can help me with this?
Any tip is welcome.

The current source code can be found in gitweb:
https://gerrit.libreoffice.org/gitweb?p=core.git;a=commitdiff;h=47a4f0925af762895e4d632c7e903e6306640a10
, or gerrit: https://gerrit.libreoffice.org/11000

Thanks,
JMPC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20140902/9ae947f6/attachment.html>


More information about the LibreOffice mailing list