Skip to content

Commit d9058f7

Browse files
committed
NFC
1 parent 85036b2 commit d9058f7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang/lib/Format/TokenAnnotator.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2646,9 +2646,9 @@ class AnnotatingParser {
26462646
return false;
26472647
}
26482648

2649-
const auto *PrevPrev = PreviousNotConst->Previous;
2650-
const bool IsPPKeyword = PreviousNotConst->is(tok::identifier) &&
2651-
PrevPrev && PrevPrev->is(tok::hash);
2649+
bool IsPPKeyword = PreviousNotConst->is(tok::identifier) &&
2650+
PreviousNotConst->Previous &&
2651+
PreviousNotConst->Previous->is(tok::hash);
26522652

26532653
if (PreviousNotConst->is(TT_TemplateCloser)) {
26542654
return PreviousNotConst && PreviousNotConst->MatchingParen &&
@@ -2675,8 +2675,8 @@ class AnnotatingParser {
26752675

26762676
// *a or &a or &&a.
26772677
if (PreviousNotConst->is(TT_PointerOrReference) ||
2678-
(PreviousNotConst->is(tok::coloncolon) && PrevPrev &&
2679-
PrevPrev->is(TT_PointerOrReference))) {
2678+
PreviousNotConst->endsSequence(tok::coloncolon,
2679+
TT_PointerOrReference)) {
26802680
return true;
26812681
}
26822682

0 commit comments

Comments
 (0)