17 bool use_color)
const {
18 const std::string label =
20 const std::string dim =
22 const std::string reset =
27 llvm::StringRef usage_kind =
29 s << label << usage_kind <<
" Usages:" << reset;
30 const std::vector<llvm::StringRef> &usages =
34 s <<
' ' << dim <<
"None" << reset <<
'\n';
35 else if (usages.size() == 1)
36 s <<
" " << usages.front() <<
'\n';
39 for (llvm::StringRef usage : usages) {
void Dump(Stream &s, UsageKind kind, bool use_color=false) const
const std::vector< llvm::StringRef > & GetCommandInterpreterUsages() const
const std::vector< llvm::StringRef > & GetSBAPIUsages() const
A stream class that can stream formatted output to a file.
size_t Indent(llvm::StringRef s="")
Indent the current line in the stream.
void IndentLess(unsigned amount=2)
Decrement the current indentation level.
void IndentMore(unsigned amount=2)
Increment the current indentation level.
std::string FormatAnsiTerminalCodes(llvm::StringRef format, bool do_color=true)
A class that represents a running process on the host machine.