Skip to content

Commit a1743a4

Browse files
eZWALTrofirrim
authored andcommitted
Address formatting issues
1 parent a1bf3ec commit a1743a4

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

clang/include/clang/Parse/Parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6761,7 +6761,7 @@ class Parser : public CodeCompletionHandler {
67616761

67626762
/// Parses the 'looprange' clause of a '#pragma omp fuse' directive.
67636763
OMPClause *ParseOpenMPLoopRangeClause();
6764-
6764+
67656765
/// Parses the 'sizes' clause of a '#pragma omp tile' directive.
67666766
OMPClause *ParseOpenMPSizesClause();
67676767

clang/lib/AST/StmtOpenMP.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -522,15 +522,15 @@ OMPFuseDirective *OMPFuseDirective::Create(
522522
NumLoops);
523523
Dir->setTransformedStmt(TransformedStmt);
524524
Dir->setPreInits(PreInits);
525-
// The number of top level canonical nests could
525+
// The number of top level canonical nests could
526526
// not match the total number of generated loops
527527
// Example:
528528
// Before fusion:
529-
// for (int i = 0; i < N; ++i)
530-
// for (int j = 0; j < M; ++j)
529+
// for (int i = 0; i < N; ++i)
530+
// for (int j = 0; j < M; ++j)
531531
// A[i][j] = i + j;
532-
//
533-
// for (int k = 0; k < P; ++k)
532+
//
533+
// for (int k = 0; k < P; ++k)
534534
// B[k] = k * 2;
535535
// Here, NumLoopNests = 2, but NumLoops = 3.
536536
Dir->setNumGeneratedLoopNests(NumLoopNests);

clang/lib/Parse/ParseOpenMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3401,7 +3401,7 @@ OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind,
34013401
break;
34023402
case OMPC_looprange:
34033403
Clause = ParseOpenMPLoopRangeClause();
3404-
break;
3404+
break;
34053405
default:
34063406
break;
34073407
}

flang/lib/Lower/OpenMP/Clauses.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ Link make(const parser::OmpClause::Link &inp,
998998
}
999999

10001000
LoopRange make(const parser::OmpClause::Looprange &inp,
1001-
semantics::SemanticsContext &semaCtx) {
1001+
semantics::SemanticsContext &semaCtx) {
10021002
llvm_unreachable("Unimplemented: looprange");
10031003
}
10041004

flang/lib/Parser/openmp-parsers.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -892,10 +892,8 @@ TYPE_PARSER(
892892
maybe(":"_tok >> nonemptyList(Parser<OmpLinearClause::Modifier>{})),
893893
/*PostModified=*/pure(true)))
894894

895-
TYPE_PARSER(
896-
construct<OmpLoopRangeClause>(scalarIntConstantExpr,
897-
"," >> scalarIntConstantExpr)
898-
)
895+
TYPE_PARSER(construct<OmpLoopRangeClause>(
896+
scalarIntConstantExpr, "," >> scalarIntConstantExpr))
899897

900898
// OpenMPv5.2 12.5.2 detach-clause -> DETACH (event-handle)
901899
TYPE_PARSER(construct<OmpDetachClause>(Parser<OmpObject>{}))
@@ -1071,7 +1069,7 @@ TYPE_PARSER( //
10711069
"LINK" >> construct<OmpClause>(construct<OmpClause::Link>(
10721070
parenthesized(Parser<OmpObjectList>{}))) ||
10731071
"LOOPRANGE" >> construct<OmpClause>(construct<OmpClause::Looprange>(
1074-
parenthesized(Parser<OmpLoopRangeClause>{}))) ||
1072+
parenthesized(Parser<OmpLoopRangeClause>{}))) ||
10751073
"MAP" >> construct<OmpClause>(construct<OmpClause::Map>(
10761074
parenthesized(Parser<OmpMapClause>{}))) ||
10771075
"MATCH" >> construct<OmpClause>(construct<OmpClause::Match>(

0 commit comments

Comments
 (0)