一些技巧¶
- c++ 去除文件注释
# -fpreprocessed tells the compiler that the code is already preprocessed
# retain macro definitions
# -E stops the compiler after the preprocessing stage
# -P omit line numbers** from the output.
g++ -fpreprocessed -dD -E -P test.cc