Skip to content

Commit d0b9502

Browse files
committed
Fix formatting issues.
1 parent deffda7 commit d0b9502

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

clang/lib/Basic/OpenMPKinds.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -765,10 +765,10 @@ bool clang::isOpenMPCapturingDirective(OpenMPDirectiveKind DKind) {
765765
return false;
766766
}
767767

768-
bool clang::isOpenMPOrderConcurrentNestableDirective(OpenMPDirectiveKind DKind) {
769-
return DKind == OMPD_atomic || DKind == OMPD_loop ||
770-
DKind == OMPD_simd || DKind == OMPD_parallel ||
771-
isOpenMPLoopTransformationDirective(DKind);
768+
bool clang::isOpenMPOrderConcurrentNestableDirective(
769+
OpenMPDirectiveKind DKind) {
770+
return DKind == OMPD_atomic || DKind == OMPD_loop || DKind == OMPD_simd ||
771+
DKind == OMPD_parallel || isOpenMPLoopTransformationDirective(DKind);
772772
}
773773

774774
void clang::getOpenMPCaptureRegions(

clang/lib/Sema/SemaOpenMP.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4789,14 +4789,14 @@ static bool checkNestingOfRegions(Sema &SemaRef, const DSAStackTy *Stack,
47894789
OpenMPDirectiveKind EnclosingConstruct = ParentLOC.back();
47904790

47914791
if (Stack->isParentOrderConcurrent()) {
4792-
bool InvalidOrderNesting = false;
4792+
bool InvalidOrderNesting = false;
47934793
if ((SemaRef.LangOpts.OpenMP == 51 || SemaRef.LangOpts.OpenMP == 52) &&
4794-
CurrentRegion != OMPD_simd &&
4795-
CurrentRegion != OMPD_loop && CurrentRegion != OMPD_parallel &&
4794+
CurrentRegion != OMPD_simd && CurrentRegion != OMPD_loop &&
4795+
CurrentRegion != OMPD_parallel &&
47964796
!isOpenMPCombinedParallelADirective(CurrentRegion)) {
47974797
InvalidOrderNesting = true;
47984798
} else if (SemaRef.LangOpts.OpenMP >= 60 &&
4799-
!isOpenMPOrderConcurrentNestableDirective(CurrentRegion)) {
4799+
!isOpenMPOrderConcurrentNestableDirective(CurrentRegion)) {
48004800
// OpenMP 6.0 [12.3 order Clause, Restrictions]
48014801
// Only regions that correspond to order-concurrent-nestable constructs
48024802
// or order-concurrent-nestable routines may be strictly nested regions

0 commit comments

Comments
 (0)