зеркало из https://github.com/microsoft/clang-1.git
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
This commit is contained in:
Родитель
bbd34e6658
Коммит
5e83baaaaa
|
@ -1110,7 +1110,6 @@ class OptionParser:
|
||||||
args = ArgList(self, argv)
|
args = ArgList(self, argv)
|
||||||
for pos,a in it:
|
for pos,a in it:
|
||||||
i = InputIndex(0, pos)
|
i = InputIndex(0, pos)
|
||||||
# FIXME: Handle '@'
|
|
||||||
if not a:
|
if not a:
|
||||||
# gcc's handling of empty arguments doesn't make
|
# gcc's handling of empty arguments doesn't make
|
||||||
# sense, but this is not a common use case. :)
|
# 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
|
# We just ignore them here (note that other things may
|
||||||
# still take them as arguments).
|
# still take them as arguments).
|
||||||
pass
|
pass
|
||||||
|
elif a[0] == '@':
|
||||||
|
# FIXME: Handle '@'
|
||||||
|
raise InvalidArgumentsError('@ style argument lists are unsupported')
|
||||||
elif a[0] == '-' and a != '-':
|
elif a[0] == '-' and a != '-':
|
||||||
args.append(self.lookupOptForArg(i, a, it))
|
args.append(self.lookupOptForArg(i, a, it))
|
||||||
else:
|
else:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче