[Driver] Simplify OptionData. NFC
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 11 Dec 2018 20:19:53 +0000 (20:19 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 11 Dec 2018 20:19:53 +0000 (20:19 +0000)
commitfb3e58920dcc84edb169d122dd064cfcf1eb1349
tree9f105248407cec8f3e50e629903c11c9b5d530ed
parent853a667812054efb1ce1533d9f299ba95098612a
[Driver] Simplify OptionData. NFC

Hopefully this makes the option data easier to understand and maintain.

 - Group the member variables.
 - Do the initialization in the header as it's less error prone.
 - Rename the Clean method. It was called only once and was
   re-initializing some but not all (?) members. The only useful thing it
   does is dealing with the local lldbinit file so keep that and make the
   name reflect that.

llvm-svn: 348894
lldb/tools/driver/Driver.cpp
lldb/tools/driver/Driver.h