A partially evaluating C preprocessor capable of refactoring ifdefs
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ifdef
lepl
.hgignore
LICENSE
README
ifdef-rewriter.py
ifdef-stats.py

README

ifdef-rewriter: given some information about macro definitions that are always enabled or always disabled this tool re-writes any expressions containing these macro definitions. Dead branches are removed, branches that are always taken will be de-ifdeffed. It also updates ifdef comments

ifdef-stats: produces a sorted list of macro definitions along with how many lines of code are in some way controlled by that definition.