Skip to content

Commit 3591835

Browse files
committed
[lldb] add review changes
1 parent f0e5b92 commit 3591835

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,11 +421,9 @@ bool CPlusPlusNameParser::ConsumeOperator() {
421421
if (m_next_token_index + 1 < m_tokens.size()) {
422422
// Look ahead two tokens.
423423
const clang::Token n_token = m_tokens[m_next_token_index + 1];
424-
const tok::TokenKind n_token_kind = n_token.getKind();
425424
// If we find `(`, `<` or `[` then this is indeed operator<< no need for
426425
// fix.
427-
if (n_token_kind != tok::l_paren && n_token_kind != tok::less &&
428-
n_token_kind != tok::l_square) {
426+
if (!n_token.isOneOf(tok::l_paren, tok::less, tok::l_square)) {
429427
clang::Token tmp_tok{};
430428
tmp_tok.startToken();
431429
tmp_tok.setLength(1);

0 commit comments

Comments
 (0)