Skip to content

Commit e825f49

Browse files
committed
[NFC][flang][OpenMP] Fixes formatting issues with D110714
This NFC fixes formatting issues introduced with https://reviews.llvm.org/D110714 Reviewed By: peixin, shraiysh Differential Revision: https://reviews.llvm.org/D121186
1 parent 036088f commit e825f49

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

flang/lib/Semantics/check-omp-structure.cpp

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,8 @@ bool OmpStructureChecker::IsOperatorValid(const T &node, const D &variable) {
13441344
if ((exprLeft.value().source.ToString() != variableName) &&
13451345
(exprRight.value().source.ToString() != variableName)) {
13461346
context_.Say(variable.GetSource(),
1347-
"Atomic update variable '%s' not found in the RHS of the assignment statement in an ATOMIC (UPDATE) construct"_err_en_US,
1347+
"Atomic update variable '%s' not found in the RHS of the "
1348+
"assignment statement in an ATOMIC (UPDATE) construct"_err_en_US,
13481349
variableName);
13491350
}
13501351
return common::HasMember<T, AllowedBinaryOperators>;
@@ -1368,7 +1369,8 @@ void OmpStructureChecker::CheckAtomicUpdateAssignmentStmt(
13681369
name->source == "iand" || name->source == "ior" ||
13691370
name->source == "ieor")) {
13701371
context_.Say(expr.source,
1371-
"Invalid intrinsic procedure name in OpenMP ATOMIC (UPDATE) statement"_err_en_US);
1372+
"Invalid intrinsic procedure name in "
1373+
"OpenMP ATOMIC (UPDATE) statement"_err_en_US);
13721374
} else if (name) {
13731375
bool foundMatch{false};
13741376
if (auto varDesignatorIndirection =
@@ -1394,7 +1396,8 @@ void OmpStructureChecker::CheckAtomicUpdateAssignmentStmt(
13941396
}
13951397
if (!foundMatch) {
13961398
context_.Say(expr.source,
1397-
"Atomic update variable '%s' not found in the argument list of intrinsic procedure"_err_en_US,
1399+
"Atomic update variable '%s' not found in the "
1400+
"argument list of intrinsic procedure"_err_en_US,
13981401
var.GetSource().ToString());
13991402
}
14001403
}
@@ -1417,7 +1420,8 @@ void OmpStructureChecker::CheckAtomicMemoryOrderClause(
14171420
numMemoryOrderClause++;
14181421
if (numMemoryOrderClause > 1) {
14191422
context_.Say(clause.source,
1420-
"More than one memory order clause not allowed on OpenMP Atomic construct"_err_en_US);
1423+
"More than one memory order clause not allowed on OpenMP "
1424+
"Atomic construct"_err_en_US);
14211425
return;
14221426
}
14231427
}
@@ -1433,7 +1437,8 @@ void OmpStructureChecker::CheckAtomicMemoryOrderClause(
14331437
numMemoryOrderClause++;
14341438
if (numMemoryOrderClause > 1) {
14351439
context_.Say(clause.source,
1436-
"More than one memory order clause not allowed on OpenMP Atomic construct"_err_en_US);
1440+
"More than one memory order clause not allowed on "
1441+
"OpenMP Atomic construct"_err_en_US);
14371442
return;
14381443
}
14391444
}
@@ -1443,7 +1448,8 @@ void OmpStructureChecker::CheckAtomicMemoryOrderClause(
14431448
numMemoryOrderClause++;
14441449
if (numMemoryOrderClause > 1) {
14451450
context_.Say(clause.source,
1446-
"More than one memory order clause not allowed on OpenMP Atomic construct"_err_en_US);
1451+
"More than one memory order clause not "
1452+
"allowed on OpenMP Atomic construct"_err_en_US);
14471453
return;
14481454
}
14491455
}

0 commit comments

Comments
 (0)