diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -72,8 +72,8 @@ template class opt; template class opt; template class opt; -} -} // end namespace llvm::cl +} // namespace cl +} // namespace llvm // Pin the vtables to this file. void GenericOptionValue::anchor() {} @@ -127,18 +127,19 @@ O->getFormattingFlag() == cl::AlwaysPrefix; } - namespace { class PrintArg { StringRef ArgName; size_t Pad; + public: - PrintArg(StringRef ArgName, size_t Pad = DefaultPad) : ArgName(ArgName), Pad(Pad) {} + PrintArg(StringRef ArgName, size_t Pad = DefaultPad) + : ArgName(ArgName), Pad(Pad) {} friend raw_ostream &operator<<(raw_ostream &OS, const PrintArg &); }; -raw_ostream &operator<<(raw_ostream &OS, const PrintArg& Arg) { +raw_ostream &operator<<(raw_ostream &OS, const PrintArg &Arg) { OS << argPrefix(Arg.ArgName, Arg.Pad) << Arg.ArgName; return OS; } @@ -156,7 +157,7 @@ // This collects Options added with the cl::DefaultOption flag. Since they can // be overridden, they are not added to the appropriate SubCommands until // ParseCommandLineOptions actually runs. - SmallVector DefaultOptions; + SmallVector