Skip to content

Commit 1c8f0fe

Browse files
committed
Address formatting issues
1 parent e294777 commit 1c8f0fe

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
@@ -6737,7 +6737,7 @@ class Parser : public CodeCompletionHandler {
67376737

67386738
/// Parses the 'looprange' clause of a '#pragma omp fuse' directive.
67396739
OMPClause *ParseOpenMPLoopRangeClause();
6740-
6740+
67416741
/// Parses the 'sizes' clause of a '#pragma omp tile' directive.
67426742
OMPClause *ParseOpenMPSizesClause();
67436743

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
@@ -3520,7 +3520,7 @@ OMPClause *Parser::ParseOpenMPClause(OpenMPDirectiveKind DKind,
35203520
break;
35213521
case OMPC_looprange:
35223522
Clause = ParseOpenMPLoopRangeClause();
3523-
break;
3523+
break;
35243524
default:
35253525
break;
35263526
}

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
@@ -847,10 +847,8 @@ TYPE_PARSER(
847847
maybe(":"_tok >> nonemptyList(Parser<OmpLinearClause::Modifier>{})),
848848
/*PostModified=*/pure(true)))
849849

850-
TYPE_PARSER(
851-
construct<OmpLoopRangeClause>(scalarIntConstantExpr,
852-
"," >> scalarIntConstantExpr)
853-
)
850+
TYPE_PARSER(construct<OmpLoopRangeClause>(
851+
scalarIntConstantExpr, "," >> scalarIntConstantExpr))
854852

855853
// OpenMPv5.2 12.5.2 detach-clause -> DETACH (event-handle)
856854
TYPE_PARSER(construct<OmpDetachClause>(Parser<OmpObject>{}))
@@ -1026,7 +1024,7 @@ TYPE_PARSER( //
10261024
"LINK" >> construct<OmpClause>(construct<OmpClause::Link>(
10271025
parenthesized(Parser<OmpObjectList>{}))) ||
10281026
"LOOPRANGE" >> construct<OmpClause>(construct<OmpClause::Looprange>(
1029-
parenthesized(Parser<OmpLoopRangeClause>{}))) ||
1027+
parenthesized(Parser<OmpLoopRangeClause>{}))) ||
10301028
"MAP" >> construct<OmpClause>(construct<OmpClause::Map>(
10311029
parenthesized(Parser<OmpMapClause>{}))) ||
10321030
"MATCH" >> construct<OmpClause>(construct<OmpClause::Match>(

0 commit comments

Comments
 (0)