有一个c ++的样式检查器? [英] Is there a style checker for c++?

查看:277
本文介绍了有一个c ++的样式检查器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have worked with java for a while now, and I found checkstyle to be very useful. I am starting to work with c++ and I was wondering if there is a style checker with similar functionality. I am mainly looking for the ability to write customized checks.

推荐答案

Vera ++

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

Vera++ is a programmable tool for verification, analysis and transformation of C++ source code. Vera++ is mainly an engine that parses C++ source files and presents the result of this parsing to scripts in the form of various collections - the scripts are actually performing the requested tasks.

点击此处查看更完整的演示

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
...

这篇关于有一个c ++的样式检查器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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