7

我已经使用 java 一段时间了,我发现checkstyle非常有用。我开始使用 c++,我想知道是否有具有类似功能的样式检查器。我主要是在寻找编写自定义支票的能力。

4

3 回答 3

3

维拉++呢?

Vera++ 是一个用于验证、分析和转换 C++ 源代码的可编程工具。Vera++主要是一个解析C++源文件并将解析结果以各种集合的形式呈现给脚本的引擎——脚本实际上是在执行请求的任务。

单击此处查看有关其功能的更完整演示。

crc.hpp:157: keyword 'explicit' not followed by a single space
crc.hpp:588: closing curly bracket not in the same line or column
dynamic_property_map.hpp:82: keyword 'if' not followed by a single space
functional.hpp:106: line is longer than 100 characters
multi_index_container.hpp:472: comma should be followed by whitespace
version.hpp:37: too many consecutive empty lines
weak_ptr.hpp:108: keyword 'catch' not followed by a single space
...
于 2010-09-08T13:38:38.657 回答
1

I have had good feedback about Artistic Style which allows to apply a uniform style on code without too much hassle.

It's free and there are plenty of "classic" styles already defined. It might not work with C++0x new constructs though.

I am also expecting a Clang library, though I haven't found any to date. Normally, given Clang's structure it should be relatively easy, but then it's always easier to say than to code and I guess nobody took the time yet.

于 2010-09-08T13:25:11.590 回答
0

KWStyle似乎是一个轻量级的合身

于 2016-11-22T13:59:35.143 回答