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

Ted Kremenek kremenek at apple.com
Fri Apr 25 14:28:20 PDT 2008


Author: kremenek
Date: Fri Apr 25 16:28:20 2008
New Revision: 50304

URL: http://llvm.org/viewvc/llvm-project?rev=50304&view=rev
Log:
Pass down more -iXXX options that clang supports

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=50304&r1=50303&r2=50304&view=diff

==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Fri Apr 25 16:28:20 2008
@@ -166,19 +166,26 @@
             i += 1
 
         # Prefix matches for the compile mode
-        if arg[:2] in ['-D', '-I', '-U', '-F']:
+        if arg[:2] in ['-D', '-I', '-U', '-F' ]:
             if not arg[2:]:
                 arg += args[i+1]
                 i += 1
             compile_opts.append(arg)
+
         if arg[:5] in ['-std=']:
             compile_opts.append(arg)
 
         # Options with one argument that should pass through to compiler
-        if arg == 'include':
+        if arg in [ '-include', '-idirafter', '-iprefix',
+                    '-iquote', '-isystem', '-iwithprefix',
+                    '-iwithprefixbefore']:
             compile_opts.append(arg)
             compile_opts.append(args[i+1])
             i += 1
+            
+        # Options with no argument that should pass through to compiler
+        if arg == '-nostdinc':
+          compile_opts.append(arg)          
 
         # Options with one argument that should pass through to linker
         if arg == 'framework':





More information about the cfe-commits mailing list