[cfe-commits] r52899 - /cfe/trunk/utils/ccc-analyzer
Ted Kremenek
kremenek at apple.com
Mon Jun 30 09:12:30 PDT 2008
Author: kremenek
Date: Mon Jun 30 11:12:30 2008
New Revision: 52899
URL: http://llvm.org/viewvc/llvm-project?rev=52899&view=rev
Log:
Bug fix: when copying prefix files using 'cp', don't split file names by spaces.
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=52899&r1=52898&r2=52899&view=diff
==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Mon Jun 30 11:12:30 2008
@@ -47,6 +47,17 @@
if language.rfind("c++") >= 0:
return
+ RunAnalyzer = 0;
+
+ if language.find("header") > 0:
+ target = remove_pch_extension(output)
+ command = ['cp']
+ args = command + files + [ target ]
+ else:
+ command = clang.split() + analysis_type.split()
+ args = command + args;
+ RunAnalyzer = 1
+
print_args = []
if verbose:
@@ -58,17 +69,6 @@
print_args.append(''.join([ '\'', args[i], '\'' ]))
i += 1
- RunAnalyzer = 0;
-
- if language.find("header") > 0:
- target = remove_pch_extension(output)
- command = 'cp'.split()
- args = command + files + target.split()
- else:
- command = clang.split() + analysis_type.split()
- args = command + args;
- RunAnalyzer = 1
-
if verbose == 2:
print >> sys.stderr, '#SHELL (cd ' + os.getcwd() + ' && ' + ' '.join(command + print_args) + ')\n'
More information about the cfe-commits
mailing list