Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Line Counter
Line Counter [message #199154] Mon, 06 August 2007 18:48 Go to next message
Eclipse UserFriend
Originally posted by: spam.noway.com

Hey, is there a line counter in CDT or a plugin to do so?

Would really like to see what my project has grown to recently. =)

Thanks,

--
Stephan
2003 Yamaha R6

君のこと思い出す日なんてないのは
君のこと忘れたときがないから
Re: Line Counter [message #199784 is a reply to message #199154] Mon, 20 August 2007 13:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: my.exmpl.com

Stephan Rose wrote:
> Hey, is there a line counter in CDT or a plugin to do so?
>
> Would really like to see what my project has grown to recently. =)
>
> Thanks,
>
you can see individual line count in every file...
if you need to do it for several files use wc from command line
(assuming you have linux environment
Re: Line Counter [message #200381 is a reply to message #199784] Mon, 27 August 2007 16:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: spam.noway.com

On Mon, 20 Aug 2007 19:35:32 +0200, LR wrote:

> Stephan Rose wrote:
>> Hey, is there a line counter in CDT or a plugin to do so?
>>
>> Would really like to see what my project has grown to recently. =)
>>
>> Thanks,
>>
> you can see individual line count in every file...
> if you need to do it for several files use wc from command line
> (assuming you have linux environment

I have over 300 files...individually counting those up would take a while.
=) Also, I am looking for something that does a logical line count not a
brute force line count like wc would do.

I've tried some stuff like cccc and one other thing, can't remember the
name off the top of my head, but they both choke on different parts of my
code and come back with errors that I can't do much about as there's just
no other way to write said code. It's some Macros from wxWidgets they
can't deal with.

Thanks,

--
Stephan
2003 Yamaha R6

君のこと思い出す日なんてないのは
君のこと忘れたときがないから
Re: Line Counter [message #200469 is a reply to message #200381] Tue, 28 August 2007 09:02 Go to previous message
Eclipse UserFriend
Stephan Rose wrote:
> On Mon, 20 Aug 2007 19:35:32 +0200, LR wrote:
>
>> Stephan Rose wrote:
>>> Hey, is there a line counter in CDT or a plugin to do so?
>>>
>>> Would really like to see what my project has grown to recently. =)
>>>
>>> Thanks,
>>>
>> you can see individual line count in every file...
>> if you need to do it for several files use wc from command line
>> (assuming you have linux environment
>
> I have over 300 files...individually counting those up would take a while.
> =) Also, I am looking for something that does a logical line count not a
> brute force line count like wc would do.
>
> I've tried some stuff like cccc and one other thing, can't remember the
> name off the top of my head, but they both choke on different parts of my
> code and come back with errors that I can't do much about as there's just
> no other way to write said code. It's some Macros from wxWidgets they
> can't deal with.
>
> Thanks,
>

Can you tell your compiler to output the preprocessed code and then do a
line count? That way you'll expand all the macros and strip out the
comments.

You'll still have whitespace to deal with before you send it to wc
though... left as an exercise for the reader... I always wanted to say
that :-)

===========================

Chris Recoskie
Team Lead, IBM CDT Team
IBM Toronto
http://www.eclipse.org/cdt
Previous Topic:Indexer Fails for Some but not All Projects
Next Topic:MBS question
Goto Forum:
  


Current Time: Tue May 13 18:24:56 EDT 2025

Powered by FUDForum. Page generated in 0.24091 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top