From: Ted Kremenek Date: Tue, 13 May 2008 22:56:36 +0000 (+0000) Subject: Output #LINE for computing line counts. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3e15e22f5b30272718ced4362586f64a4a24b32;p=clang Output #LINE for computing line counts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51079 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer index 25474e6f2f..6530303b73 100755 --- a/utils/ccc-analyzer +++ b/utils/ccc-analyzer @@ -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)