diff options
author | Zachary Turner <zturner@google.com> | 2016-12-16 04:27:00 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-12-16 04:27:00 +0000 |
commit | 827d5d74a5b6a1214cbaec74aeb4a8f73d21dca0 (patch) | |
tree | c55d603b456e014c599ccbb0f2873105231a2f7c /lldb/source/Commands/CommandObjectApropos.cpp | |
parent | db4c86f953f139eaa75acdd58d5213be2f6fe65b (diff) | |
download | bcm5719-llvm-827d5d74a5b6a1214cbaec74aeb4a8f73d21dca0.tar.gz bcm5719-llvm-827d5d74a5b6a1214cbaec74aeb4a8f73d21dca0.zip |
Add methods to enable using formatv syntax in LLDB.
This adds formatv-backed formatting functions in various
places in LLDB such as StreamString, logging, constructing
error messages, etc. A couple of callsites are changed
from Printf style syntax to formatv style syntax to
illustrate its usage. Additionally, a FileSpec formatter
is introduced so that FileSpecs can be formatted natively.
Differential Revision: https://reviews.llvm.org/D27632
llvm-svn: 289922
Diffstat (limited to 'lldb/source/Commands/CommandObjectApropos.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectApropos.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectApropos.cpp b/lldb/source/Commands/CommandObjectApropos.cpp index b04d08f0136..1114a511aa0 100644 --- a/lldb/source/Commands/CommandObjectApropos.cpp +++ b/lldb/source/Commands/CommandObjectApropos.cpp @@ -90,9 +90,9 @@ bool CommandObjectApropos::DoExecute(Args &args, CommandReturnObject &result) { m_interpreter.GetDebugger().Apropos(search_word, properties); if (num_properties) { const bool dump_qualified_name = true; - result.AppendMessageWithFormat( - "\nThe following settings variables may relate to '%s': \n\n", - args[0].c_str()); + result.AppendMessageWithFormatv( + "\nThe following settings variables may relate to '{0}': \n\n", + args[0].ref); for (size_t i = 0; i < num_properties; ++i) properties[i]->DumpDescription( m_interpreter, result.GetOutputStream(), 0, dump_qualified_name); |