]> granicus.if.org Git - clang/commitdiff
Place "-x" option before other analyzer options.
authorTed Kremenek <kremenek@apple.com>
Mon, 12 May 2008 23:56:50 +0000 (23:56 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 12 May 2008 23:56:50 +0000 (23:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51014 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index 7a5f321548e2f2d838b3ba6fc7593d36a0e51796..228f8e93c884484aca2b6d9f6916dc72f0cd459f 100755 (executable)
@@ -266,7 +266,7 @@ def main(args):
                 coutput = output
             analyze_args = [ file ]
             if language != 'unknown':
-              analyze_args = analyze_args + [ '-x', language ]
+              analyze_args = [ '-x', language ] + analyze_args
             analyze_args = analyze_args + compile_opts
             analyze(clang, analyze_args, language, output, files, verbose, htmldir)
 #        compile(args)