Skip to content

Commit e22a06d

Browse files
committed
fix code style
1 parent 9adcc63 commit e22a06d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8641,9 +8641,9 @@ void Sema::DiagnoseShadowingLambdaDecls(const LambdaScopeInfo *LSI) {
86418641
Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration);
86428642
} else if (isa<FieldDecl>(ShadowedDecl)) {
86438643
if (CXXMethodDecl *MD =
8644-
dyn_cast<CXXMethodDecl>(getFunctionLevelDeclContext()))
8645-
if (MD->isExplicitObjectMemberFunction())
8646-
continue;
8644+
dyn_cast<CXXMethodDecl>(getFunctionLevelDeclContext());
8645+
MD && MD->isExplicitObjectMemberFunction())
8646+
continue;
86478647

86488648
Diag(Shadow.VD->getLocation(),
86498649
LSI->isCXXThisCaptured() ? diag::warn_decl_shadow

0 commit comments

Comments
 (0)