From 5e83baaaaae70451822d35e2f7499391f5a10d5f Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 6 Feb 2009 01:28:59 +0000 Subject: [PATCH] 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 --- tools/ccc/ccclib/Arguments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: