[clang-tidy] Fix "expression is redundant [misc-redundant-expression]" warning. NFCI. (PR44768)

We only accept tok::TokenKind::comment enum values so no need to add other cases. Seems to be a cut+paste typo.
This commit is contained in:
Simon Pilgrim 2020-02-04 21:36:11 +00:00
parent 4f9f5d09de
commit 17785cc7a1

View File

@ -42,7 +42,7 @@ SourceLocation forwardSkipWhitespaceAndComments(SourceLocation Loc,
Loc = Loc.getLocWithOffset(1);
tok::TokenKind TokKind = getTokenKind(Loc, SM, Context);
if (TokKind == tok::NUM_TOKENS || TokKind != tok::comment)
if (TokKind != tok::comment)
return Loc;
// Fast-forward current token.