MaskRay added inline comments.
================
Comment at: lldb/source/Target/TraceSettingsParser.cpp:123
+ if (schema.empty()) {
+ std::ostringstream schema_builder;
+ schema_builder << "{\n \"trace\": ";
----------------
This requires `sstream`. Fixed.
================
Comment at: lldb/source/Target/TraceSettingsParser.cpp:128
+ std::string plugin_schema(GetPluginSchema());
+ plugin_schema = std::regex_replace(plugin_schema, std::regex("\n"), "\n
");
+ schema_builder << plugin_schema << ",\n";
----------------
The replacement here looks strange.
`<regex>` implementations tend to be large, slow and buggy. It'd be best if
<regex> can be avoided. (llvm has llvm/Support/Regex.h)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85705/new/
https://reviews.llvm.org/D85705
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits