Skip to content

Commit 117ed65

Browse files
committed
[clang-format][NFC] Remove a redundant check for null
Missed by llvm#145686
1 parent 3f3282c commit 117ed65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Format/TokenAnnotator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ class AnnotatingParser {
14111411
if (Prev->isPointerOrReference())
14121412
Prev->setFinalizedType(TT_PointerOrReference);
14131413
} else if ((CurrentToken && CurrentToken->is(tok::numeric_constant)) ||
1414-
(Prev && Prev->is(TT_StartOfName) && !Scopes.empty() &&
1414+
(Prev->is(TT_StartOfName) && !Scopes.empty() &&
14151415
Scopes.back() == ST_Class)) {
14161416
Tok->setType(TT_BitFieldColon);
14171417
} else if (Contexts.size() == 1 &&

0 commit comments

Comments
 (0)