[cfe-commits] r51079 - /cfe/trunk/utils/ccc-analyzer

Ted Kremenek kremenek at apple.com
Tue May 13 15:56:37 PDT 2008


Author: kremenek
Date: Tue May 13 17:56:36 2008
New Revision: 51079

URL: http://llvm.org/viewvc/llvm-project?rev=51079&view=rev
Log:
Output #LINE for computing line counts.

Modified:
    cfe/trunk/utils/ccc-analyzer

Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=51079&r1=51078&r2=51079&view=diff

==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Tue May 13 17:56:36 2008
@@ -50,7 +50,7 @@
           return path
       return path[:i]
 
-def analyze(clang, args,language,output,files,verbose,htmldir):
+def analyze(clang, args,language,output,files,verbose,htmldir,file):
     if language.find("c++") > 0:
       return
   
@@ -79,6 +79,7 @@
 
     if verbose == 2:
       print >> sys.stderr, '#SHELL (cd ' + os.getcwd() + ' && ' + ' '.join(command + print_args) + ')\n'
+      print >> sys.stderr, '#LINE (cd ' + os.getcwd() + ' && wc -l ' + file + ')\n'
 
 
     if RunAnalyzer and htmldir is not None:
@@ -267,7 +268,7 @@
             if language != 'unknown':
               analyze_args = [ '-x', language ] + analyze_args
             analyze_args = analyze_args + compile_opts
-            analyze(clang, analyze_args, language, output, files, verbose, htmldir)
+            analyze(clang, analyze_args, language, output, files, verbose, htmldir, file)
 #        compile(args)
 
 





More information about the cfe-commits mailing list