Remove Ifdef Macro
- Add new line at the end of source files to avoid “No new line at end of file”
find . -name "*.h" | xargs -I{} unifdef {} -o {}
find . -name "*.c" | xargs -I{} unifdef {} -o {}
find . -name "*.cpp" | xargs -I{} unifdef {} -o {}
- unifdef some Macros like beblow:
find . -type d -name '.git' -prune -o -type d -name 'out' -prune -o -regex '.*\.\(h\|c\|cpp\)' | xargs -I{} unifdef -U__BT_ONE_BRING_TWO__ -U__INTERCONNECTION__ -o {} {}