aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectType.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2021-11-19 20:06:13 +0000
committerDimitry Andric <dim@FreeBSD.org>2021-11-19 20:06:13 +0000
commitc0981da47d5696fe36474fcf86b4ce03ae3ff818 (patch)
treef42add1021b9f2ac6a69ac7cf6c4499962739a45 /lldb/source/Commands/CommandObjectType.cpp
parent344a3780b2e33f6ca763666c380202b18aab72a3 (diff)
Diffstat (limited to 'lldb/source/Commands/CommandObjectType.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectType.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectType.cpp b/lldb/source/Commands/CommandObjectType.cpp
index 90e224867e2a..0562b6be3cb5 100644
--- a/lldb/source/Commands/CommandObjectType.cpp
+++ b/lldb/source/Commands/CommandObjectType.cpp
@@ -1598,7 +1598,7 @@ static bool FixArrayTypeNameWithRegex(ConstString &type_name) {
std::string type_name_str(type_name.GetCString());
type_name_str.resize(type_name_str.length() - 2);
if (type_name_str.back() != ' ')
- type_name_str.append(" \\[[0-9]+\\]");
+ type_name_str.append(" ?\\[[0-9]+\\]");
else
type_name_str.append("\\[[0-9]+\\]");
type_name.SetCString(type_name_str.c_str());
@@ -2978,7 +2978,7 @@ public:
CommandObjectTypeFilter(CommandInterpreter &interpreter)
: CommandObjectMultiword(interpreter, "type filter",
"Commands for operating on type filters.",
- "type synthetic [<sub-command-options>] ") {
+ "type filter [<sub-command-options>] ") {
LoadSubCommand(
"add", CommandObjectSP(new CommandObjectTypeFilterAdd(interpreter)));
LoadSubCommand("clear", CommandObjectSP(