Code line counter

Andreas Pakulat apaku at
Tue Nov 28 12:08:49 GMT 2006

On 28.11.06 07:49:33, Pierre-Paul Lavoie wrote:
> On the command line, the word count program comes with every Linux. It
> can also count lines with the -l option.
>     e.g.
>         cd src/
>         wc -l *.cpp *.hpp

Which normally doesn't reflect the LOC at all, due to the large amount
of documentation in good programs ;)

But a simple parser that throws away C/C++ comments and preprocessor
directives is easily implementable with flex/bison.


Day of inquiry.  You will be subpoenaed.

More information about the KDevelop mailing list