[PATCH] Option parsing: recognize the special -- token

Chandler Carruth chandlerc at google.com
Fri Aug 2 14:02:12 PDT 2013


On Fri, Aug 2, 2013 at 1:56 PM, Reid Kleckner <rnk at google.com> wrote:

> This could be a breaking behavior change for people who expect clang to
> parse args after --.  They're crazy, of course, but you should ask Chandler
> if changing this for all driver modes is OK.


I hope none have built up such a dependency. To me, it is essential that
all the drivers work as this patch makes them. I actually wonder if this
was a regression when we switched to the common parsing implementation. (It
seems unlikely).

GCC-compatibility cannot be impacted by this because passing '--' to GCC
results in a hard error.

So I think we should make this change, and see if anyone screams. We should
also probably file a bug against GCC to get them to implement equivalent
behavior.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130802/c7d1b73e/attachment.html>


More information about the llvm-commits mailing list