来源$ C ​​$ C美化用于C ++(VC ++)? [英] Source code beautifier for c++ (vc++)?

查看:137
本文介绍了来源$ C ​​$ C美化用于C ++(VC ++)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组250头文件和我的项目cpp文件。我想格式化旧code和生成API文档。是否有任何工具,可以帮助我做到这一点?

I have a set of 250 header files and cpp files of my project. I wanted to format the old code and generate API documentation. Is there any tool that can help me do this?

我想用doxygen的,但我认为,需要在某种格式的信息。

I am thinking of using DOxygen, but I believe that needs the information in a some format.

推荐答案

不要使用 Doxygen的构建文档。它可以从源推断很多原样与右设置。它得到与每一个文件记载的对象适当的意见更好。但是,使用Doxygen不会帮助你,你的正规化code的格式和布局。

Do use Doxygen for building documentation. It can infer a lot from the source as-is with the right settings. It gets better with suitable comments for each documented object. However, Doxygen won't help you regularize your code's format and layout.

有关的任​​务,你想有一个code美化。经典的工具是缩进。然而,一个更灵活的工具是 Uncrustify ,这是包含在明确指定的几个美化之一的Universal缩进GUI 的。后者的工具支持一系列语言,并提供了一​​个很好的GUI界面,以帮助您调整设置,以您的preferred风格。

For that task, you want a code beautifier. The classic tool was indent. However, a much more versatile tool is Uncrustify, which is one of several beautifiers included in the clearly named Universal Indent GUI. The latter tool supports a wide array of languages, and provides a nice GUI interface to help you tune the settings to your preferred style.

以上所有的都是免费和开源的,顺便说一句。

All of the above are free and open source, incidentally.

一旦你进入使用Doxygen的,你将要同时安装 Graphviz的工具,以便它可以吸引你调用图等图。

Once you get into using Doxygen, you will want to also install the Graphviz tools so that it can draw you call graphs and other diagrams.

这篇关于来源$ C ​​$ C美化用于C ++(VC ++)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆