代码行 [英] lines of code

查看:82
本文介绍了代码行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有用于测量我的c ++应用程序的
代码行的软件。

我发现了一个工具,sloccount,但它只提供了物理行的

代码。


我发现了一个工具cccc,但我得到了很多解析错误

with它。

如果你知道任何其他工具(在linux中使用),请告诉我。

解决方案

Pavan写道:


您好,我想知道是否有任何软件用于测量我的c ++应用程序的
代码行。

我发现了一个工具,sloccount,但它只提供了物理线路的

代码。


我发现了一个更多工具cccc,但我得到很多解析错误

用它。


如果你知道任何其他工具(在linux中使用),请告诉我。



你究竟如何衡量LOC - 这包括评论吗?在多行中定义?

表达式?


8月3日下午1:47,Gianni Mariani< gi3nos ... @ mariani。 wswrote:


Pavan写道:


您好,我想知道是否有任何测量软件

我的c ++应用程序代码。

我发现了一个工具,sloccount,但它只提供了物理行的

代码。


我发现了一个工具cccc,但我得到了很多解析错误



如果你知道任何其他工具(在linux中使用),请告诉我。



你究竟如何衡量LOC - 这包括评论吗?在多行中定义?

表达式?



是的,它应该单独计算评论,还应该给出符合逻辑的

行代码


Pavan写道:


是的,它应该单独计算注释,还应该给出合乎逻辑的

行代码



你需要指定逻辑和逻辑 LOC。


Hi, I want to know if there is any software for measuring lines of
code of my c++ application.
I found out a tool, sloccount, but it gives only physical lines of
code.

I found out one more tool cccc , but iam getting many parse errors
with it.
If you know any other tool( to be used in linux) please let me know.

解决方案

Pavan wrote:

Hi, I want to know if there is any software for measuring lines of
code of my c++ application.
I found out a tool, sloccount, but it gives only physical lines of
code.

I found out one more tool cccc , but iam getting many parse errors
with it.
If you know any other tool( to be used in linux) please let me know.

Exactly how do you measure LOC - does that include comments ? defines ?
expressions over multiple lines ?


On Aug 3, 1:47 pm, Gianni Mariani <gi3nos...@mariani.wswrote:

Pavan wrote:

Hi, I want to know if there is any software for measuring lines of
code of my c++ application.
I found out a tool, sloccount, but it gives only physical lines of
code.

I found out one more tool cccc , but iam getting many parse errors
with it.

If you know any other tool( to be used in linux) please let me know.


Exactly how do you measure LOC - does that include comments ? defines ?
expressions over multiple lines ?

Yes, It should count comments seperately and should also give logical
lines of code


Pavan wrote:

Yes, It should count comments seperately and should also give logical
lines of code


You need to specify "logical" LOC.


这篇关于代码行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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