Skip to content

Commit 3f94613

Browse files
committed
[lldb] review change use literal
1 parent 5a2d161 commit 3f94613

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,6 @@ bool CPlusPlusLanguage::CxxMethodName::NameMatches(llvm::StringRef full_name,
544544
MatchOptions options) {
545545
constexpr llvm::StringRef abi_prefix = "[abi:";
546546
constexpr char abi_end = ']';
547-
constexpr char open_angle = '<';
548-
constexpr char close_angle = '>';
549547
size_t f_idx = 0;
550548
size_t p_idx = 0;
551549

@@ -584,16 +582,15 @@ bool CPlusPlusLanguage::CxxMethodName::NameMatches(llvm::StringRef full_name,
584582
}
585583

586584
// Skip template_tags.
587-
if (options.skip_templates && in_char == open_angle &&
588-
ma_char != open_angle) {
585+
if (options.skip_templates && in_char == '<' && ma_char != '<') {
589586
size_t depth = 1;
590587
size_t tmp_idx = f_idx + 1;
591588
bool found_end = false;
592589
for (; tmp_idx < full_name.size(); ++tmp_idx) {
593590
const char cur = full_name[tmp_idx];
594-
if (cur == open_angle)
591+
if (cur == '<')
595592
depth++;
596-
else if (cur == close_angle) {
593+
else if (cur == '>') {
597594
depth--;
598595

599596
if (depth == 0) {

0 commit comments

Comments
 (0)