oclint规则 Unused(无用)
来源:互联网 发布:2017 淘宝 我的空间 编辑:程序博客网 时间:2024/06/05 05:58
Unused¶
无用本地变量 UnusedLocalVariable¶
Since: 0.4
检查声明了,却没有使用的本地变量.
定义类: oclint-rules/rules/unused/UnusedLocalVariableRule.cpp
Example:
int example(int a){ int i; // variable i is declared, but not used return 0;}
Suppress:
__attribute__((annotate("oclint:suppress[unused local variable]")))
无用的方法参数 UnusedMethodParameter¶
Since: 0.4
检查无用方法参数.
定义类: oclint-rules/rules/unused/UnusedMethodParameterRule.cpp
Example:
int example(int a) // parameter a is not used{ return 0;}
Suppress:
__attribute__((annotate("oclint:suppress[unused method parameter]")))
0 0
- oclint规则 Unused(无用)
- oclint规则 Convention(公约)
- oclint规则 Size(大小)
- oclint规则
- [OCLint]OCLint代码检查规则
- oclint规则 Redundant(沉余)
- OCLint的部分规则(Basic 部分)
- OCLint的部分规则(Unuseed 部分)
- OCLint的部分规则(Size 部分)
- OCLint的部分规则(Redundant 部分)
- OCLint的部分规则(Naming 部分)
- OCLint的部分规则(Migration 部分)
- OCLint的部分规则(Empty 部分)
- OCLint的部分规则(Design 部分)
- OCLint的部分规则(Convention 部分)
- OCLint的部分规则(CoCoa 部分)
- oclint 规则选择
- oclint规则 Cocoa
- [转载][笔记]MySQL 配置优化
- 代理之匿名函数
- Android 利用 APT 技术在编译期生成代码
- Python 正则表达式
- robots.txt写法大全
- oclint规则 Unused(无用)
- CMakeCache.txt is different 错误
- JAVA001对象导论06
- ld: library not found for -lAFNetworking
- c++深拷贝和浅拷贝
- 深度学习:LeNet-5学习
- 代码混淆与反编译
- 【nowcoder】9.5 阿里巴巴2017实习生笔试题(一)
- Linux系统下如何修改主机名