Justin Bogner
f66fc53bc7
Support: Fix option handling when using cl::Required with aliasopt
...
Until now, attempting to create an alias of a required option would
complain if the user supplied the alias, because the required option
didn't have a value. Similarly, if you said the alias was required,
then using the base option would complain that the alias wasn't
supplied. Lastly, if you put required on both, *neither* option would
work.
By changning alias to overload addOccurrence and setting cl::Required
on the original option, we can get this to behave in a more useful
way. I've also added a test and updated a user that was getting this
wrong.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212986 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-14 20:53:57 +00:00
..
2014-04-18 14:54:51 +00:00
2014-06-20 10:08:11 +00:00
2014-06-27 17:25:54 +00:00
2014-04-14 00:51:57 +00:00
2014-04-29 16:31:29 +00:00
2014-04-29 17:07:42 +00:00
2014-04-09 06:08:46 +00:00
2014-04-07 04:17:22 +00:00
2014-06-27 03:11:18 +00:00
2014-07-14 20:53:57 +00:00
2014-06-10 20:45:52 +00:00
2014-04-05 21:53:04 +00:00
2014-06-16 11:09:46 +00:00
2014-06-25 23:54:50 +00:00
2014-05-28 18:19:55 +00:00
2014-05-28 18:19:55 +00:00
2014-04-21 22:55:11 +00:00
2014-06-19 15:39:33 +00:00
2014-04-07 04:17:22 +00:00
2014-07-08 08:59:22 +00:00
2014-06-14 13:18:07 +00:00
2014-06-13 17:20:48 +00:00
2014-06-13 21:20:44 +00:00
2014-06-13 17:20:48 +00:00
2014-06-12 21:46:39 +00:00
2014-06-30 18:57:16 +00:00
2014-04-07 04:17:22 +00:00
2014-06-04 15:47:07 +00:00
2014-04-07 04:17:22 +00:00
2014-05-07 21:50:43 +00:00
2014-07-02 06:50:48 +00:00
2014-04-14 00:51:57 +00:00
2014-06-26 22:52:05 +00:00
2014-04-07 04:17:22 +00:00
2014-04-18 16:57:01 +00:00
2014-06-12 21:46:39 +00:00
2014-06-30 18:45:23 +00:00
2014-06-27 15:13:01 +00:00
2014-07-02 14:40:35 +00:00
2014-06-12 21:46:39 +00:00
2014-07-06 17:43:13 +00:00
2014-06-19 20:20:03 +00:00
2014-05-07 19:55:38 +00:00
2014-05-16 13:16:30 +00:00
2014-06-30 19:54:20 +00:00
2014-06-12 21:46:39 +00:00
2014-06-25 15:47:36 +00:00
2014-06-26 22:52:05 +00:00
2014-03-30 11:36:29 +00:00
2014-04-07 04:17:22 +00:00
2014-04-15 05:53:26 +00:00
2014-04-10 09:44:32 +00:00
2014-06-24 05:59:52 +00:00
2014-04-07 04:17:22 +00:00
2014-04-07 04:17:22 +00:00
2014-07-09 08:30:15 +00:00
2014-07-10 11:39:59 +00:00
2014-06-19 06:10:58 +00:00
2014-06-19 01:09:49 +00:00
2014-06-14 12:52:55 +00:00
2014-07-01 10:47:13 +00:00
2014-06-27 15:13:01 +00:00
2014-04-14 00:51:57 +00:00
2014-05-13 10:11:29 +00:00
2014-04-21 22:55:11 +00:00
2014-03-30 11:20:25 +00:00
2014-06-12 00:24:39 +00:00
2014-04-15 08:59:52 +00:00
2014-06-26 22:52:05 +00:00