Hello people.
I'm writing a python script that helps to find macros and methods which are
defined/implemented but are not in use anywhere.
The script is simple. Your most important purpose is to find these unused
code, and otherwise, help to find where these macros or methods are defined.
For that, I need some help with some definitions..
When we are looking for macros, it's not so simple, a #define code can
exist for an #ifdef, or #ifndef. And in that cases, the script can't say
that the macro is not used, because the system may use it. Or for a common
cause, like #define NAME; "My Name";
If someone can, I like to ask for help with the rules for a #define to be
valid.
By now, the latest version (incomplete but running):
http://pastebin.com/Ta4JJeuF
And of course, you can implement/make it better.
Thank you in advance.
Best Regards, Ricardo.
--
Ricardo Montania Prado de Campos
http://www.linuxafundo.com.br
Context
- #defines and #ifdefs · Ricardo Montania
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.