Option parsing: recognize the special -- token
authorHans Wennborg <hans@hanshq.net>
Fri, 2 Aug 2013 21:20:27 +0000 (21:20 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 2 Aug 2013 21:20:27 +0000 (21:20 +0000)
commitb8f3420d1eb77075f66c83bced17bb2067f1c01f
tree072a91e03f6f583096d14523ef9c5f74dc40f38d
parente9efbf140bac0ce5116d39f892818bd7a042d87e
Option parsing: recognize the special -- token

Everything that comes after -- should be treated as a filename. This
enables passing in filenames that would otherwise be conflated with
command-line options.

This is especially important for clang-cl which supports options
starting with /, which are easily conflatable with Unix-style
path names.

Differential Revision: http://llvm-reviews.chandlerc.com/D1274

llvm-svn: 187675
llvm/lib/Option/OptTable.cpp
llvm/unittests/Option/OptionParsingTest.cpp