Ubuntu安装使用google代码规范工具cpplint
来源:互联网 发布:人工智能用什么语言写 编辑:程序博客网 时间:2024/05/29 16:45
cpplint 1.3.0下载链接: https://pypi.python.org/pypi/cpplint
此工具是一个C++代码样式检查器,遵循google的代码规范(英文原版、中文译版)
1. cpplint安装
$ pip install cpplint
2. cpplint运行
$ cpplint [OPTIONS] files
3. cpplint帮助
$ cpplint --help
4. cpplint测试
#include <iostream> using namespace std; int main(){ cout<<"hello world!"<<endl; return 0; }
5. 终端错误显示
6. 修改如下
- 未写copyright
- using namespace std; 修改为 using::
- int main(){ 修改为 int main() { 大括号前空格问题
/* # Copyright (c) 2017 Yz L. All rights reserved. */ #include <iostream> int main() { std::cout <<"hello world!"<<std::endl; return 0; }
7. 终端显示
阅读全文
0 0
- Ubuntu安装使用google代码规范工具cpplint
- Google代码规范工具Cpplint的使用
- Google代码规范工具Cpplint的使用
- 推荐cpplint检查代码规范
- c++代码静态检查工具——cpplint使用技巧
- emacs下使用google-cpplint
- C++代码质量检查工具-----Cpplint
- 代码审查-第二天:代码风格审查工具cpplint的使用
- 安装cpplint
- Eclipse代码规范工具-Checkstyle安装和使用
- 使用cpplint进行提交代码的风格检查
- 静态代码检测工具Cpplint
- 静态代码分析 cpplint
- Cpplint代码静态检测工具
- php代码规范 及工具使用
- google C++代码规范
- google python 代码规范
- Google 代码规范
- git学习及基本入门
- re库主要功能函数
- 深度学习之标注工具【Qt版】
- 数组删除重复的数字1方法一:
- 集成学习(Ensemble Learning)
- Ubuntu安装使用google代码规范工具cpplint
- Android Studio安装新的字体
- 基于函数的索引+创建基于函数的索引
- 线段树入门(建树,查询,更新)hdu1754
- Linux重定向命令(stdout, stdin, stderr)
- 使用git提交代码到github及git常用指令
- Struts2的优缺点总结
- uva 10340 All in All
- FFmpeg 3 跨平台视音频编解码入门基础