OSDN Git Service

[Option] Add inclusion and exclusion flags to option parsing
authorReid Kleckner <reid@kleckner.net>
Fri, 19 Jul 2013 18:04:57 +0000 (18:04 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 19 Jul 2013 18:04:57 +0000 (18:04 +0000)
commita2549d382789fa33b5541708b2e4cf39e8bf56c9
treed2f24688ce4304a54925e4014780e28911fafcdc
parentba460864440b4dd192bd2809f913babe0cf07031
[Option] Add inclusion and exclusion flags to option parsing

Summary:
This allows the clang driver to put MSVC compatible options in the same
enumerator space as its normal options but exclude them from normal
option parsing.

Also changes the standard ParseArgs() method to consider unknown
arguments with a leading slash as being inputs rather than flags.

High level discussion for clang-cl is here:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-June/030404.html

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1049

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186703 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Option/OptTable.h
lib/Option/OptTable.cpp