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 83b1270 commit 9c12c4bCopy full SHA for 9c12c4b
clang/lib/Format/TokenAnnotator.cpp
@@ -1643,9 +1643,9 @@ class AnnotatingParser {
1643
if (IsCpp && CurrentToken) {
1644
const auto *Info = CurrentToken->Tok.getIdentifierInfo();
1645
// What follows Tok is an identifier or a non-operator keyword.
1646
- if (Info && !(Info->isCPlusPlusOperatorKeyword() ||
1647
- CurrentToken->isPlacementOperator() ||
1648
- CurrentToken->is(tok::kw_co_await))) {
+ if (Info && !(CurrentToken->isPlacementOperator() ||
+ CurrentToken->is(tok::kw_co_await) ||
+ Info->isCPlusPlusOperatorKeyword())) {
1649
FormatToken *LParen;
1650
if (CurrentToken->startsSequence(tok::kw_decltype, tok::l_paren,
1651
tok::kw_auto, tok::r_paren)) {
0 commit comments