diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-05-13 22:56:36 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-05-13 22:56:36 +0000 |
commit | c3e15e22f5b30272718ced4362586f64a4a24b32 (patch) | |
tree | 5a2079740f6e7f18ead8f0288da3c9dea8174b82 | |
parent | 8912b5427a22d9032cad959c5c22cd9d28d4a66c (diff) |
Output #LINE for computing line counts.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51079 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/ccc-analyzer | 5 |
1 files changed, 3 insertions, 2 deletions
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) |