]> granicus.if.org Git - clang/commitdiff
Pass down more -iXXX options that clang supports
authorTed Kremenek <kremenek@apple.com>
Fri, 25 Apr 2008 21:28:20 +0000 (21:28 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 25 Apr 2008 21:28:20 +0000 (21:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50304 91177308-0d34-0410-b5e6-96231b3b80d8

utils/ccc-analyzer

index abd86f85bf7d63b325c833ec4807459eebb26a26..8db6167af077a5622651f04a1f3e6a7dc7eb0201 100755 (executable)
@@ -166,19 +166,26 @@ def main(args):
             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':