CommandLineParser: Avoid non-static member nitializer(s).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227428 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2015-01-29 11:06:59 +00:00
parent b326bdc595
commit 760c72110f

View File

@ -88,7 +88,7 @@ public:
// Globals for name and overview of program. Program name is not a string to
// avoid static ctor/dtor issues.
std::string ProgramName;
const char *ProgramOverview = nullptr;
const char *ProgramOverview;
// This collects additional help to be printed.
std::vector<const char *> MoreHelp;
@ -97,7 +97,9 @@ public:
SmallVector<Option *, 4> SinkOpts;
StringMap<Option *> OptionsMap;
Option *ConsumeAfterOpt = nullptr; // The ConsumeAfter option if it exists.
Option *ConsumeAfterOpt; // The ConsumeAfter option if it exists.
CommandLineParser() : ProgramOverview(nullptr), ConsumeAfterOpt(nullptr) {}
void ParseCommandLineOptions(int argc, const char *const *argv,
const char *Overview);