如何从两个版本之间的Perforce diff中获取C / C ++函数名

时间:2017-12-20 05:33:08

标签: python c++ c perforce

我正在尝试在perforce修订文件之间提取差异。但我的要求是提取已修改的函数名称。有没有办法找到改变的功能。

1 个答案:

答案 0 :(得分:0)

使用与函数名称匹配的正则表达式执行p4 diff2和grep:

Regex to pull out C function prototype declarations?