Skip to content

Commit e71018f

Browse files
committed
Clang-format
1 parent 01497e7 commit e71018f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

clang/lib/Sema/JumpDiagnostics.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ void JumpScopeChecker::BuildScopeInformation(Stmt *S,
310310
unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S))
311311
? origParentScope : independentParentScope);
312312

313-
unsigned StmtsToSkip = 0u;
314-
313+
unsigned StmtsToSkip = 0u;
314+
315315
// If we found a label, remember that it is in ParentScope scope.
316316
switch (S->getStmtClass()) {
317317
case Stmt::AddrLabelExprClass:
@@ -649,14 +649,13 @@ void JumpScopeChecker::BuildScopeInformation(Stmt *S,
649649
Next = SC->getSubStmt();
650650
else if (LabelStmt *LS = dyn_cast<LabelStmt>(SubStmt))
651651
Next = LS->getSubStmt();
652-
else if (AttributedStmt *AS = dyn_cast<AttributedStmt>(SubStmt)){
652+
else if (AttributedStmt *AS = dyn_cast<AttributedStmt>(SubStmt)) {
653653
if (GetMustTailAttr(AS)) {
654654
LabelAndGotoScopes[AS] = ParentScope;
655655
MustTailStmts.push_back(AS);
656656
}
657657
Next = AS->getSubStmt();
658-
}
659-
else
658+
} else
660659
break;
661660

662661
LabelAndGotoScopes[SubStmt] = ParentScope;
@@ -943,7 +942,7 @@ void JumpScopeChecker::CheckJump(Stmt *From, Stmt *To, SourceLocation DiagLoc,
943942

944943
unsigned FromScope = LabelAndGotoScopes[From];
945944
unsigned ToScope = LabelAndGotoScopes[To];
946-
945+
947946
// Common case: exactly the same scope, which is fine.
948947
if (FromScope == ToScope) return;
949948

0 commit comments

Comments
 (0)