Recursively remove preprocessor macros

前端 未结 1 1368
既然无缘
既然无缘 2021-01-28 21:27

I have a source tree for a program I am working on which is written in mixed C/C++ code. For debugging purposes, I would like to be able to run a command line tool like un

相关标签:
1条回答
  • 2021-01-28 22:02

    I've solved this issue by using the following command:

    find . -name '*.c' -o -name '*.h' -o -name '*.cpp' -o -name '*.hpp' -exec unifdef <macro definitions> -o '{} {} ;'

    0 讨论(0)
提交回复
热议问题