【问题标题】:How to check if source code file confirms to given astyle rules?如何检查源代码文件是否符合给定的astyle规则?
【发布时间】:2015-11-08 10:52:13
【问题描述】:

astyle 修改作为参数提供的文件。我只想检查特定文件是否已确认astyle。如果没有在 svn 预提交钩子中返回错误。但是astyle 手册页没有说明返回值或如何防止就地格式化。

【问题讨论】:

    标签: svn astyle


    【解决方案1】:

    diff原始文件和美化文件,| wc -ldiff

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-01-18
      • 1970-01-01
      • 2018-05-13
      • 1970-01-01
      • 2020-12-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多