Skip to content

Commit deeab0a

Browse files
committed
Reformat for line breaks
1 parent f758735 commit deeab0a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

clang/lib/AST/Decl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3438,7 +3438,8 @@ bool FunctionDecl::isUsableAsGlobalAllocationFunctionInConstantEvaluation(
34383438

34393439
// In C++17, the next parameter can be a 'std::align_val_t' for aligned
34403440
// new/delete.
3441-
if ((IsTypeAware || Ctx.getLangOpts().AlignedAllocation) && !Ty.isNull() && Ty->isAlignValT()) {
3441+
if ((IsTypeAware || Ctx.getLangOpts().AlignedAllocation) && !Ty.isNull() &&
3442+
Ty->isAlignValT()) {
34423443
Consume();
34433444
if (AlignmentParam)
34443445
*AlignmentParam = Params;

clang/lib/Sema/SemaExprCXX.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,8 +1753,10 @@ static bool isNonPlacementDeallocationFunction(Sema &S, FunctionDecl *FD) {
17531753
FD->getOverloadedOperator() != OO_Array_Delete)
17541754
return false;
17551755

1756-
if (S.getLangOpts().TypeAwareAllocators && FD->isTypeAwareOperatorNewOrDelete()) {
1757-
unsigned UsualParams = /* type-identity */ 1 + /* address */ 1 + /* size */ 1 + /* align*/ 1;
1756+
if (S.getLangOpts().TypeAwareAllocators &&
1757+
FD->isTypeAwareOperatorNewOrDelete()) {
1758+
unsigned UsualParams =
1759+
/* type-identity */ 1 + /* address */ 1 + /* size */ 1 + /* align*/ 1;
17581760
return UsualParams == FD->getNumParams();
17591761
}
17601762

0 commit comments

Comments
 (0)