Skip to content

Commit 48e4564

Browse files
author
Chandra Ghale
committed
formating fix
1 parent ea22ec1 commit 48e4564

File tree

4 files changed

+937
-951
lines changed

4 files changed

+937
-951
lines changed

clang/lib/AST/OpenMPClause.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,8 @@ OMPReductionClause *OMPReductionClause::Create(
797797
ArrayRef<Expr *> Privates, ArrayRef<Expr *> LHSExprs,
798798
ArrayRef<Expr *> RHSExprs, ArrayRef<Expr *> ReductionOps,
799799
ArrayRef<Expr *> CopyOps, ArrayRef<Expr *> CopyArrayTemps,
800-
ArrayRef<Expr *> CopyArrayElems, Stmt *PreInit, Expr *PostUpdate,ArrayRef<bool> IsPrivateVarReduction) {
800+
ArrayRef<Expr *> CopyArrayElems, Stmt *PreInit, Expr *PostUpdate,
801+
ArrayRef<bool> IsPrivateVarReduction) {
801802
void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(
802803
(Modifier == OMPC_REDUCTION_inscan ? 8 : 5) * VL.size()));
803804
auto *Clause = new (Mem)

clang/lib/Parse/ParseOpenMP.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4680,8 +4680,9 @@ bool Parser::ParseOpenMPVarList(OpenMPDirectiveKind DKind,
46804680
Data.OriginalSharingModifier = OMPC_ORIGINAL_SHARING_private;
46814681
Data.OriginalSharingModifierLoc = Tok.getLocation();
46824682
ConsumeToken();
4683-
} else if (Tok.is(tok::identifier) && (PP.getSpelling(Tok) == "shared"
4684-
|| PP.getSpelling(Tok) == "default")) {
4683+
} else if (Tok.is(tok::identifier) &&
4684+
(PP.getSpelling(Tok) == "shared" ||
4685+
PP.getSpelling(Tok) == "default")) {
46854686
Data.OriginalSharingModifier = OMPC_ORIGINAL_SHARING_shared;
46864687
Data.OriginalSharingModifierLoc = Tok.getLocation();
46874688
ConsumeToken();

0 commit comments

Comments
 (0)