aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-25 21:28:20 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-25 21:28:20 +0000
commitdc34300db91139cf25bec65f1a0861a286f97b17 (patch)
treede042fc997a661c606b2f314a246acad2a1e64d2
parent87e795eac86ce6d3e61c4b13425935f1af6ff8c4 (diff)
Pass down more -iXXX options that clang supports
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50304 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/ccc-analyzer11
1 files changed, 9 insertions, 2 deletions
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer
index abd86f85bf..8db6167af0 100755
--- a/utils/ccc-analyzer
+++ b/utils/ccc-analyzer
@@ -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':