Skip to content

Commit 73fc237

Browse files
committed
format style
1 parent 9e08ddf commit 73fc237

File tree

2 files changed

+2164
-2173
lines changed

2 files changed

+2164
-2173
lines changed

clang/lib/AST/ByteCode/Interp.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,12 +2366,14 @@ static inline bool PtrPtrCast(InterpState &S, CodePtr OpPC, bool SrcIsVoidPtr) {
23662366
} else if (!S.getLangOpts().CPlusPlus26) {
23672367
const SourceInfo &E = S.Current->getSource(OpPC);
23682368
S.CCEDiag(E, diag::note_constexpr_invalid_cast)
2369-
<< diag::CastKind::CastFrom << "'void *'" << S.Current->getRange(OpPC);
2369+
<< diag::CastKind::CastFrom << "'void *'"
2370+
<< S.Current->getRange(OpPC);
23702371
}
23712372
} else {
23722373
const SourceInfo &E = S.Current->getSource(OpPC);
23732374
S.CCEDiag(E, diag::note_constexpr_invalid_cast)
2374-
<< diag::CastKind::ThisCastOrReinterpret << S.getLangOpts().CPlusPlus << S.Current->getRange(OpPC);
2375+
<< diag::CastKind::ThisCastOrReinterpret << S.getLangOpts().CPlusPlus
2376+
<< S.Current->getRange(OpPC);
23752377
}
23762378

23772379
return true;
@@ -2474,9 +2476,9 @@ inline bool DoShift(InterpState &S, CodePtr OpPC, LT &LHS, RT &RHS) {
24742476
if (!S.noteUndefinedBehavior())
24752477
return false;
24762478
RHS = -RHS;
2477-
return DoShift<LT, RT,
2478-
Dir == ShiftDir::Left ? ShiftDir::Right : ShiftDir::Left>(
2479-
S, OpPC, LHS, RHS);
2479+
return DoShift < LT, RT,
2480+
Dir == ShiftDir::Left ? ShiftDir::Right
2481+
: ShiftDir::Left > (S, OpPC, LHS, RHS);
24802482
}
24812483

24822484
if (!CheckShift<Dir>(S, OpPC, LHS, RHS, Bits))

0 commit comments

Comments
 (0)