]> granicus.if.org Git - clang/commitdiff
Bug fix: when copying prefix files using 'cp', don't split file names by spaces.
authorTed Kremenek <kremenek@apple.com>
Mon, 30 Jun 2008 16:12:30 +0000 (16:12 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 30 Jun 2008 16:12:30 +0000 (16:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52899 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index 10141889fb1584cf18fbf207512621fac5c83a76..e7b74c05f9c74f48ee501c4676308b889a11198a 100755 (executable)
@@ -47,6 +47,17 @@ def analyze(clang, args,language,output,files,verbose,htmldir,file,analysis_type
   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 @@ def analyze(clang, args,language,output,files,verbose,htmldir,file,analysis_type
       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'