[cfe-commits] r51871 - /cfe/trunk/utils/ccc-analyzer

Ted Kremenek kremenek at apple.com
Mon Jun 2 10:13:41 PDT 2008


Author: kremenek
Date: Mon Jun  2 12:13:40 2008
New Revision: 51871

URL: http://llvm.org/viewvc/llvm-project?rev=51871&view=rev
Log:
Use "file_language" for per-language -x options.

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=51871&r1=51870&r2=51871&view=diff

==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Mon Jun  2 12:13:40 2008
@@ -269,8 +269,8 @@
       else:
         coutput = output
       analyze_args = [ file ]
-      if language != 'unknown':
-        analyze_args = [ '-x', language ] + analyze_args
+      if file_language != 'unknown':
+        analyze_args = [ '-x', file_language ] + analyze_args
       analyze_args = analyze_args + compile_opts
       analyze(clang, analyze_args, language, output, files, verbose, htmldir, file, analysis_type)
 





More information about the cfe-commits mailing list