diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-06 01:28:59 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-06 01:28:59 +0000 |
commit | 5e83baaaaae70451822d35e2f7499391f5a10d5f (patch) | |
tree | 39c653f8dc08113ab67d6b44008fd2096bf9d660 /tools/ccc/ccclib/Arguments.py | |
parent | bbd34e665815ce71aad2bc6b884c47695f44c860 (diff) |
ccc: Give explicit error on @ style argument lists (not yet supported).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/Arguments.py')
-rw-r--r-- | tools/ccc/ccclib/Arguments.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/ccc/ccclib/Arguments.py b/tools/ccc/ccclib/Arguments.py index fee96a82c5..184e333031 100644 --- a/tools/ccc/ccclib/Arguments.py +++ b/tools/ccc/ccclib/Arguments.py @@ -1110,7 +1110,6 @@ class OptionParser: args = ArgList(self, argv) for pos,a in it: i = InputIndex(0, pos) - # FIXME: Handle '@' if not a: # gcc's handling of empty arguments doesn't make # sense, but this is not a common use case. :) @@ -1118,6 +1117,9 @@ class OptionParser: # We just ignore them here (note that other things may # still take them as arguments). pass + elif a[0] == '@': + # FIXME: Handle '@' + raise InvalidArgumentsError('@ style argument lists are unsupported') elif a[0] == '-' and a != '-': args.append(self.lookupOptForArg(i, a, it)) else: |