是否有任何皮棉工具,C和C ++,办理入住手续的格式? [英] Are there any lint tools for C and C++ that check formatting?

查看:117
本文介绍了是否有任何皮棉工具,C和C ++,办理入住手续的格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个被很多人摸过codeBase的。虽然大多数人做,以保持$ C $努力Ç格式良好的(如压痕一致和使用括号),有的没有,甚至那些确实不能总是这样做,因为大家都用不同的编辑器,这样的设置像空格vs.制表符是不同的。

I have a codebase that is touched by many people. While most people make an effort to keep the code nicely formatted (e.g. consistent indentation and use of braces), some don't, and even those that do can't always do it because we all use different editors, so settings like spaces vs. tabs are different.

有没有标准lint工具的检查的那个code格式正确,但实际上并没有改变(如缩进但仅返回错误和警告)?

Is there any standard lint tool that checks that code is properly formatted, but doesn't actually change it (like indent but that returns only errors and warnings)?

虽然这个问题通常可以回答,我的重点是C和C ++,因为这是这个项目是写在

While this question could be answered generally, my focus is on C and C++, because that's what this project is written in.

推荐答案

谷歌使用 cpplint 。这是他们的风格指南

Google uses cpplint. This is their style guide.

这篇关于是否有任何皮棉工具,C和C ++,办理入住手续的格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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