Use the new -code-only option to llvmdo so that we only count things that
authorReid Spencer <rspencer@reidspencer.com>
Sun, 13 Aug 2006 18:29:21 +0000 (18:29 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 13 Aug 2006 18:29:21 +0000 (18:29 +0000)
are considered to be code. This will give a drop in the LOC count on the
nightly testers, but it is more accurate than previous estimates.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29653 91177308-0d34-0410-b5e6-96231b3b80d8

utils/countloc.sh

index 736b8805df674a0bfe00336ecb60069f40c59ba0..95574cb4462f9eeee1ca51e5744a2d75383625a9 100755 (executable)
@@ -22,7 +22,7 @@
 TOPDIR=`llvm-config --src-root`
 if test -d "$TOPDIR" ; then
   cd $TOPDIR
-  ./utils/llvmdo -dirs "include lib tools test utils examples" wc -l | awk '\
+  ./utils/llvmdo -dirs "include lib tools test utils examples" -code-only wc -l | awk '\
       BEGIN { loc=0; } \
       { loc += $1; } \
       END { print loc; }'