我如何下载并安装皮棉? [英] How do I download and install lint?

查看:63
本文介绍了我如何下载并安装皮棉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何为Mac,Windows和Linux获取皮棉吗? sudo port install lint找不到它.

Does anyone know how to obtain lint for Mac, Windows, and Linux? sudo port install lint can't find it.

推荐答案

来自夹板常见问题解答:

From the splint FAQ:

Splint支持ANSI C的大多数(但不是全部)C99扩展.

Splint supports most, but not all, of the C99 extensions to the ANSI C.

这意味着夹板与皮棉不同.我对在以下代码段上运行夹板有个人经验:

This implies that splint is alas not the same as lint. I've had personal experience with running splint on pieces of code like this:

for (int i; i < 100; i++)
    /* Run code */

因为直到C99才允许在for循环头中声明变量,如本例所示,夹板会对此进行抱怨.因此,我仍在寻找Ubuntu夹板的替代品.

As declaration of a variable inside the for loop header is not permitted until C99, like in this example, splint will complain about this. Hence, I'm still looking for a good alternative to splint for Ubuntu.

这篇关于我如何下载并安装皮棉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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