]> granicus.if.org Git - clang/commitdiff
Output #LINE for computing line counts.
authorTed Kremenek <kremenek@apple.com>
Tue, 13 May 2008 22:56:36 +0000 (22:56 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 13 May 2008 22:56:36 +0000 (22:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51079 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index 25474e6f2fa55d186dc36c0b73e8fb859f05d655..6530303b73df253ec6ae369a5c37c0b7b7ce703c 100755 (executable)
@@ -50,7 +50,7 @@ def remove_pch_extension(path):
           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 @@ def analyze(clang, args,language,output,files,verbose,htmldir):
 
     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 @@ def main(args):
             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)