Skip to content

Commit 56b148a

Browse files
authored
[lldb] Fix stdcpp type summary mistakenly marked as regex (NFC) (#66949)
`std::basic_string<char>` is not a regex, and treating it as such could unintentionally cause a formatter to substring match a template type parameter, for example: `std::vector<std::basic_string<char>>`. Differential Revision: https://reviews.llvm.org/D158663
1 parent ca22d6e commit 56b148a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ static void LoadLibStdcppFormatters(lldb::TypeCategoryImplSP cpp_category_sp) {
10091009
cpp_category_sp->AddTypeSummary("std::string", eFormatterMatchExact,
10101010
std_string_summary_sp);
10111011
cpp_category_sp->AddTypeSummary("std::basic_string<char>",
1012-
eFormatterMatchRegex, std_string_summary_sp);
1012+
eFormatterMatchExact, std_string_summary_sp);
10131013
cpp_category_sp->AddTypeSummary(
10141014
"std::basic_string<char,std::char_traits<char>,std::allocator<char> >",
10151015
eFormatterMatchExact, std_string_summary_sp);

0 commit comments

Comments
 (0)