https://bugs.documentfoundation.org/show_bug.cgi?id=94879

--- Comment #1 from Miklos Vajna <[email protected]> ---
Before it would be done manually, I recently wrote a tool based on clang
libtooling to automate this process.

http://cgit.freedesktop.org/libreoffice/contrib/dev-tools/tree/clang has the
code and documentation on how to do it, basically in this case (because this
class is internal to the sot module) it's a matter of running:

make -sr COMPILER_EXTERNAL_TOOL=1 CCACHE_PREFIX=find-unprefixed-members-wrapper
RENAME_ARGS="-class-name=StgStrm"

to generate a .csv file, then:

make -sr COMPILER_EXTERNAL_TOOL=1 CCACHE_PREFIX=rename-wrapper
RENAME_ARGS="-csv=$HOME/rename.csv"

to generate .new files where the members are prefixed, finally:

for i in $(find . -name "*.new"); do mv -f $i ${i%%.new}; done

to overwrite the original files with the .new ones. All these commands have to
be invoked in the sot/ directory of a build tree where clang is the configured
compiler.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to