our project is really big. the source codes size is about 620KLOC in one module. So I want to check which function is the biggest in a directory/module? Is there any tool can support it?
SourceMonitor only has "Average Statements per Method", not maximum statements per method. CCCC doesn't support it either.
example. This function length is 1.
unsigned short get()
{
return 1;
}
Thanks.
The easiest thing I can think of is scripting your way through it.
Another tool that might be of help:
Lazy C++: Is is a code generator that splits files that are very similar to c++ into header and source. If you write you transform your code into a lzz file the generated code includes line counter tags per function. The differences in those numbers would show you how big your functions are
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With