summaryrefslogtreecommitdiffstats
path: root/lldb/source/Breakpoint
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-12-16 04:27:00 +0000
committerZachary Turner <zturner@google.com>2016-12-16 04:27:00 +0000
commit827d5d74a5b6a1214cbaec74aeb4a8f73d21dca0 (patch)
treec55d603b456e014c599ccbb0f2873105231a2f7c /lldb/source/Breakpoint
parentdb4c86f953f139eaa75acdd58d5213be2f6fe65b (diff)
downloadbcm5719-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/Breakpoint')
-rw-r--r--lldb/source/Breakpoint/BreakpointOptions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Breakpoint/BreakpointOptions.cpp b/lldb/source/Breakpoint/BreakpointOptions.cpp
index 3168f00d5ff..65c16e22e95 100644
--- a/lldb/source/Breakpoint/BreakpointOptions.cpp
+++ b/lldb/source/Breakpoint/BreakpointOptions.cpp
@@ -86,8 +86,8 @@ BreakpointOptions::CommandData::CreateFromStructuredData(
found_something = true;
interp_language = ScriptInterpreter::StringToLanguage(interpreter_str);
if (interp_language == eScriptLanguageUnknown) {
- error.SetErrorStringWithFormat("Unknown breakpoint command language: %s.",
- interpreter_str.c_str());
+ error.SetErrorStringWithFormatv("Unknown breakpoint command language: {0}.",
+ interpreter_str);
return data_up;
}
data_up->interpreter = interp_language;
OpenPOWER on IntegriCloud