We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0e5b92 commit 3591835Copy full SHA for 3591835
lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
@@ -421,11 +421,9 @@ bool CPlusPlusNameParser::ConsumeOperator() {
421
if (m_next_token_index + 1 < m_tokens.size()) {
422
// Look ahead two tokens.
423
const clang::Token n_token = m_tokens[m_next_token_index + 1];
424
- const tok::TokenKind n_token_kind = n_token.getKind();
425
// If we find `(`, `<` or `[` then this is indeed operator<< no need for
426
// fix.
427
- if (n_token_kind != tok::l_paren && n_token_kind != tok::less &&
428
- n_token_kind != tok::l_square) {
+ if (!n_token.isOneOf(tok::l_paren, tok::less, tok::l_square)) {
429
clang::Token tmp_tok{};
430
tmp_tok.startToken();
431
tmp_tok.setLength(1);
0 commit comments