File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments