]> granicus.if.org Git - clang/commitdiff
ccc: Give explicit error on @ style argument lists (not yet supported).
authorDaniel Dunbar <daniel@zuster.org>
Fri, 6 Feb 2009 01:28:59 +0000 (01:28 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 6 Feb 2009 01:28:59 +0000 (01:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63903 91177308-0d34-0410-b5e6-96231b3b80d8

tools/ccc/ccclib/Arguments.py

index fee96a82c5eb67a00c4bb8b8e9efe8d8742791a2..184e333031763c0d80f36090c8bce200378f2226 100644 (file)
@@ -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: