开发者

google style guide script or tool [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

Is there a script or tool that changes a code's style to google style not completely at least partially (maybe just syntax format开发者_StackOverflowting)? We are reusing some of our C++ legacy code which is not formatted by google style standards and even just formatting it syntactically would take a few hours for a developer.

For now, we wrote some regular expressions that search and replace some basic style

Thanks


Your best bet would be AStyle, however as you said this only does "syntax formatting":

Artistic Style is a source code indenter, formatter, and beautifier for the C, C++, C# and Java programming languages.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜