You can also look at SLOCCount, which is available in packages on most Linux distributions.
Can we find executable lines of code in a C/C++ source file with gcov
-
03-10-2022 - |
문제
gcov primarily is a code coverage tool. However, is there any way we can find LOC (excluding comments...etc) with gcov?
It must be easy for gcov to get that information, but I didn't find any documentation on that.
Also, let me know if you know any other tool which can calculate lines of code in such manner.
해결책
다른 팁
if you want to another tool for just counting line of code(LOC) then please go for cloc
.
For more info regarding supported os and installation go to http://cloc.sourceforge.net/.
제휴하지 않습니다 StackOverflow