@@ -4021,7 +4021,7 @@ class DSAAttrChecker final : public StmtVisitor<DSAAttrChecker, void> {
40214021 OpenMPDefaultmapClauseKind ClauseKind =
40224022 getVariableCategoryFromDecl(SemaRef.getLangOpts(), FD);
40234023 OpenMPMapClauseKind Kind = getMapClauseKindFromModifier(
4024- Modifier, /*IsAggregateOrDeclareTarget*/ true);
4024+ Modifier, /*IsAggregateOrDeclareTarget=*/ true);
40254025 ImplicitMap[ClauseKind][Kind].emplace_back(E);
40264026 return;
40274027 }
@@ -4586,7 +4586,7 @@ static bool checkOrderedOrderSpecified(Sema &S,
45864586StmtResult SemaOpenMP::ActOnOpenMPRegionEnd(StmtResult S,
45874587 ArrayRef<OMPClause *> Clauses) {
45884588 handleDeclareVariantConstructTrait(DSAStack, DSAStack->getCurrentDirective(),
4589- /* ScopeEntry */ false);
4589+ /*ScopeEntry=*/ false);
45904590 if (!isOpenMPCapturingDirective(DSAStack->getCurrentDirective()))
45914591 return S;
45924592
@@ -7057,8 +7057,8 @@ void SemaOpenMP::ActOnStartOfFunctionDefinitionInOpenMPDeclareVariantScope(
70577057 QualType UDeclTy = UDecl->getType();
70587058 if (!UDeclTy->isDependentType()) {
70597059 QualType NewType = getASTContext().mergeFunctionTypes(
7060- FType, UDeclTy, /* OfBlockPointer */ false,
7061- /* Unqualified */ false, /* AllowCXX */ true);
7060+ FType, UDeclTy, /*OfBlockPointer=*/ false,
7061+ /*Unqualified=*/ false, /*AllowCXX=*/ true);
70627062 if (NewType.isNull())
70637063 continue;
70647064 }
@@ -7104,9 +7104,8 @@ void SemaOpenMP::ActOnFinishedFunctionDefinitionInOpenMPDeclareVariantScope(
71047104 FD = cast<FunctionDecl>(D);
71057105 auto *VariantFuncRef = DeclRefExpr::Create(
71067106 getASTContext(), NestedNameSpecifierLoc(), SourceLocation(), FD,
7107- /* RefersToEnclosingVariableOrCapture */ false,
7108- /* NameLoc */ FD->getLocation(), FD->getType(),
7109- ExprValueKind::VK_PRValue);
7107+ /*RefersToEnclosingVariableOrCapture=*/false,
7108+ /*NameLoc=*/FD->getLocation(), FD->getType(), ExprValueKind::VK_PRValue);
71107109
71117110 OMPDeclareVariantScope &DVScope = OMPDeclareVariantScopes.back();
71127111 auto *OMPDeclareVariantA = OMPDeclareVariantAttr::CreateImplicit(
@@ -7168,7 +7167,7 @@ ExprResult SemaOpenMP::ActOnOpenMPCall(ExprResult Call, Scope *Scope,
71687167 OMPTraitInfo &TI = A->getTraitInfo();
71697168 TI.getAsVariantMatchInfo(Context, VMI);
71707169 if (!isVariantApplicableInContext(VMI, OMPCtx,
7171- /* DeviceSetOnly */ false))
7170+ /*DeviceSetOnly=*/ false))
71727171 continue;
71737172
71747173 VMIs.push_back(VMI);
@@ -7204,7 +7203,7 @@ ExprResult SemaOpenMP::ActOnOpenMPCall(ExprResult Call, Scope *Scope,
72047203 auto *MemberCall = dyn_cast<CXXMemberCallExpr>(CE);
72057204 BestExpr = MemberExpr::CreateImplicit(
72067205 Context, MemberCall->getImplicitObjectArgument(),
7207- /* IsArrow */ false, SpecializedMethod, Context.BoundMemberTy,
7206+ /*IsArrow=*/ false, SpecializedMethod, Context.BoundMemberTy,
72087207 MemberCall->getValueKind(), MemberCall->getObjectKind());
72097208 }
72107209 NewCall = SemaRef.BuildCallExpr(Scope, BestExpr, LParenLoc, ArgExprs,
@@ -7214,8 +7213,8 @@ ExprResult SemaOpenMP::ActOnOpenMPCall(ExprResult Call, Scope *Scope,
72147213 FunctionDecl *NewCalleeFnDecl = NCE->getDirectCallee();
72157214 QualType NewType = getASTContext().mergeFunctionTypes(
72167215 CalleeFnType, NewCalleeFnDecl->getType(),
7217- /* OfBlockPointer */ false,
7218- /* Unqualified */ false, /* AllowCXX */ true);
7216+ /*OfBlockPointer=*/ false,
7217+ /*Unqualified=*/ false, /*AllowCXX=*/ true);
72197218 if (!NewType.isNull())
72207219 break;
72217220 // Don't use the call if the function type was not compatible.
@@ -9413,7 +9412,7 @@ static ExprResult widenIterationCount(unsigned Bits, Expr *E, Sema &SemaRef) {
94139412 if (HasBits >= Bits)
94149413 return ExprResult(E);
94159414 // OK to convert to signed, because new type has more bits than old.
9416- QualType NewType = C.getIntTypeForBitwidth(Bits, /* Signed */ true);
9415+ QualType NewType = C.getIntTypeForBitwidth(Bits, /*Signed=*/ true);
94179416 return SemaRef.PerformImplicitConversion(E, NewType, Sema::AA_Converting,
94189417 true);
94199418}
@@ -9598,7 +9597,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
95989597 }))
95999598 return 0;
96009599
9601- Built.clear(/* size */ NestedLoopCount);
9600+ Built.clear(/*size=*/ NestedLoopCount);
96029601
96039602 if (SemaRef.CurContext->isDependentContext())
96049603 return NestedLoopCount;
@@ -9752,13 +9751,13 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
97529751 LB = buildDeclRefExpr(SemaRef, LBDecl, VType, InitLoc);
97539752 SemaRef.AddInitializerToDecl(LBDecl,
97549753 SemaRef.ActOnIntegerConstant(InitLoc, 0).get(),
9755- /*DirectInit*/ false);
9754+ /*DirectInit=*/ false);
97569755
97579756 // Upper bound variable, initialized with last iteration number.
97589757 VarDecl *UBDecl = buildVarDecl(SemaRef, InitLoc, VType, ".omp.ub");
97599758 UB = buildDeclRefExpr(SemaRef, UBDecl, VType, InitLoc);
97609759 SemaRef.AddInitializerToDecl(UBDecl, LastIteration.get(),
9761- /*DirectInit*/ false);
9760+ /*DirectInit=*/ false);
97629761
97639762 // A 32-bit variable-flag where runtime returns 1 for the last iteration.
97649763 // This will be used to implement clause 'lastprivate'.
@@ -9767,15 +9766,15 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
97679766 IL = buildDeclRefExpr(SemaRef, ILDecl, Int32Ty, InitLoc);
97689767 SemaRef.AddInitializerToDecl(ILDecl,
97699768 SemaRef.ActOnIntegerConstant(InitLoc, 0).get(),
9770- /*DirectInit*/ false);
9769+ /*DirectInit=*/ false);
97719770
97729771 // Stride variable returned by runtime (we initialize it to 1 by default).
97739772 VarDecl *STDecl =
97749773 buildVarDecl(SemaRef, InitLoc, StrideVType, ".omp.stride");
97759774 ST = buildDeclRefExpr(SemaRef, STDecl, StrideVType, InitLoc);
97769775 SemaRef.AddInitializerToDecl(STDecl,
97779776 SemaRef.ActOnIntegerConstant(InitLoc, 1).get(),
9778- /*DirectInit*/ false);
9777+ /*DirectInit=*/ false);
97799778
97809779 // Build expression: UB = min(UB, LastIteration)
97819780 // It is necessary for CodeGen of directives with static scheduling.
@@ -9786,7 +9785,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
97869785 LastIteration.get(), UB.get());
97879786 EUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, UB.get(),
97889787 CondOp.get());
9789- EUB = SemaRef.ActOnFinishFullExpr(EUB.get(), /*DiscardedValue*/ false);
9788+ EUB = SemaRef.ActOnFinishFullExpr(EUB.get(), /*DiscardedValue=*/ false);
97909789
97919790 // If we have a combined directive that combines 'distribute', 'for' or
97929791 // 'simd' we need to be able to access the bounds of the schedule of the
@@ -9799,14 +9798,14 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
97999798 CombLB = buildDeclRefExpr(SemaRef, CombLBDecl, VType, InitLoc);
98009799 SemaRef.AddInitializerToDecl(
98019800 CombLBDecl, SemaRef.ActOnIntegerConstant(InitLoc, 0).get(),
9802- /*DirectInit*/ false);
9801+ /*DirectInit=*/ false);
98039802
98049803 // Upper bound variable, initialized with last iteration number.
98059804 VarDecl *CombUBDecl =
98069805 buildVarDecl(SemaRef, InitLoc, VType, ".omp.comb.ub");
98079806 CombUB = buildDeclRefExpr(SemaRef, CombUBDecl, VType, InitLoc);
98089807 SemaRef.AddInitializerToDecl(CombUBDecl, LastIteration.get(),
9809- /*DirectInit*/ false);
9808+ /*DirectInit=*/ false);
98109809
98119810 ExprResult CombIsUBGreater = SemaRef.BuildBinOp(
98129811 CurScope, InitLoc, BO_GT, CombUB.get(), LastIteration.get());
@@ -9816,7 +9815,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
98169815 CombEUB = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, CombUB.get(),
98179816 CombCondOp.get());
98189817 CombEUB =
9819- SemaRef.ActOnFinishFullExpr(CombEUB.get(), /*DiscardedValue*/ false);
9818+ SemaRef.ActOnFinishFullExpr(CombEUB.get(), /*DiscardedValue=*/ false);
98209819
98219820 const CapturedDecl *CD = cast<CapturedStmt>(AStmt)->getCapturedDecl();
98229821 // We expect to have at least 2 more parameters than the 'parallel'
@@ -9852,7 +9851,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
98529851 ? LB.get()
98539852 : SemaRef.ActOnIntegerConstant(SourceLocation(), 0).get();
98549853 Init = SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), RHS);
9855- Init = SemaRef.ActOnFinishFullExpr(Init.get(), /*DiscardedValue*/ false);
9854+ Init = SemaRef.ActOnFinishFullExpr(Init.get(), /*DiscardedValue=*/ false);
98569855
98579856 if (isOpenMPLoopBoundSharingDirective(DKind)) {
98589857 Expr *CombRHS =
@@ -9865,7 +9864,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
98659864 CombInit =
98669865 SemaRef.BuildBinOp(CurScope, InitLoc, BO_Assign, IV.get(), CombRHS);
98679866 CombInit =
9868- SemaRef.ActOnFinishFullExpr(CombInit.get(), /*DiscardedValue*/ false);
9867+ SemaRef.ActOnFinishFullExpr(CombInit.get(), /*DiscardedValue=*/ false);
98699868 }
98709869 }
98719870
@@ -9885,7 +9884,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
98859884 SemaRef.ActOnIntegerConstant(SourceLocation(), 1).get())
98869885 .get();
98879886 BoundUB =
9888- SemaRef.ActOnFinishFullExpr(BoundUB, /*DiscardedValue*/ false).get();
9887+ SemaRef.ActOnFinishFullExpr(BoundUB, /*DiscardedValue=*/ false).get();
98899888 }
98909889 ExprResult Cond =
98919890 (isOpenMPWorksharingDirective(DKind) ||
@@ -9914,7 +9913,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
99149913 SemaRef.ActOnIntegerConstant(SourceLocation(), 1).get())
99159914 .get();
99169915 BoundCombUB =
9917- SemaRef.ActOnFinishFullExpr(BoundCombUB, /*DiscardedValue*/ false)
9916+ SemaRef.ActOnFinishFullExpr(BoundCombUB, /*DiscardedValue=*/ false)
99189917 .get();
99199918 }
99209919 CombCond =
@@ -9929,7 +9928,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
99299928 if (!Inc.isUsable())
99309929 return 0;
99319930 Inc = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, IV.get(), Inc.get());
9932- Inc = SemaRef.ActOnFinishFullExpr(Inc.get(), /*DiscardedValue*/ false);
9931+ Inc = SemaRef.ActOnFinishFullExpr(Inc.get(), /*DiscardedValue=*/ false);
99339932 if (!Inc.isUsable())
99349933 return 0;
99359934
@@ -9950,7 +9949,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
99509949 NextLB =
99519950 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, LB.get(), NextLB.get());
99529951 NextLB =
9953- SemaRef.ActOnFinishFullExpr(NextLB.get(), /*DiscardedValue*/ false);
9952+ SemaRef.ActOnFinishFullExpr(NextLB.get(), /*DiscardedValue=*/ false);
99549953 if (!NextLB.isUsable())
99559954 return 0;
99569955 // UB + ST
@@ -9961,7 +9960,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
99619960 NextUB =
99629961 SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, UB.get(), NextUB.get());
99639962 NextUB =
9964- SemaRef.ActOnFinishFullExpr(NextUB.get(), /*DiscardedValue*/ false);
9963+ SemaRef.ActOnFinishFullExpr(NextUB.get(), /*DiscardedValue=*/ false);
99659964 if (!NextUB.isUsable())
99669965 return 0;
99679966 if (isOpenMPLoopBoundSharingDirective(DKind)) {
@@ -9973,7 +9972,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
99739972 CombNextLB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombLB.get(),
99749973 CombNextLB.get());
99759974 CombNextLB = SemaRef.ActOnFinishFullExpr(CombNextLB.get(),
9976- /*DiscardedValue*/ false);
9975+ /*DiscardedValue=*/ false);
99779976 if (!CombNextLB.isUsable())
99789977 return 0;
99799978 // UB + ST
@@ -9985,7 +9984,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
99859984 CombNextUB = SemaRef.BuildBinOp(CurScope, IncLoc, BO_Assign, CombUB.get(),
99869985 CombNextUB.get());
99879986 CombNextUB = SemaRef.ActOnFinishFullExpr(CombNextUB.get(),
9988- /*DiscardedValue*/ false);
9987+ /*DiscardedValue=*/ false);
99899988 if (!CombNextUB.isUsable())
99909989 return 0;
99919990 }
@@ -10008,7 +10007,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
1000810007 DistInc = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, IV.get(),
1000910008 DistInc.get());
1001010009 DistInc =
10011- SemaRef.ActOnFinishFullExpr(DistInc.get(), /*DiscardedValue*/ false);
10010+ SemaRef.ActOnFinishFullExpr(DistInc.get(), /*DiscardedValue=*/ false);
1001210011 assert(DistInc.isUsable() && "distribute inc expr was not built");
1001310012
1001410013 // Build expression: UB = min(UB, prevUB) for #for in composite or combined
@@ -10031,7 +10030,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
1003110030 PrevEUB = SemaRef.BuildBinOp(CurScope, DistIncLoc, BO_Assign, UB.get(),
1003210031 CondOp.get());
1003310032 PrevEUB =
10034- SemaRef.ActOnFinishFullExpr(PrevEUB.get(), /*DiscardedValue*/ false);
10033+ SemaRef.ActOnFinishFullExpr(PrevEUB.get(), /*DiscardedValue=*/ false);
1003510034
1003610035 // Build IV <= PrevUB or IV < PrevUB + 1 for unsigned IV to be used in
1003710036 // parallel for is in combination with a distribute directive with
@@ -10045,7 +10044,7 @@ checkOpenMPLoop(OpenMPDirectiveKind DKind, Expr *CollapseLoopCountExpr,
1004510044 SemaRef.ActOnIntegerConstant(SourceLocation(), 1).get())
1004610045 .get();
1004710046 BoundPrevUB =
10048- SemaRef.ActOnFinishFullExpr(BoundPrevUB, /*DiscardedValue*/ false)
10047+ SemaRef.ActOnFinishFullExpr(BoundPrevUB, /*DiscardedValue=*/ false)
1004910048 .get();
1005010049 }
1005110050 ParForInDistCond =
@@ -15317,7 +15316,7 @@ SemaOpenMP::PerformOpenMPImplicitIntegerConversion(SourceLocation Loc,
1531715316 class IntConvertDiagnoser : public Sema::ICEConvertDiagnoser {
1531815317 public:
1531915318 IntConvertDiagnoser()
15320- : ICEConvertDiagnoser(/*AllowScopedEnumerations*/ false, false, true) {}
15319+ : ICEConvertDiagnoser(/*AllowScopedEnumerations=*/ false, false, true) {}
1532115320 SemaDiagnosticBuilder diagnoseNotInt(Sema &S, SourceLocation Loc,
1532215321 QualType T) override {
1532315322 return S.Diag(Loc, diag::err_omp_not_integral) << T;
@@ -15540,7 +15539,7 @@ static bool findOMPAllocatorHandleT(Sema &S, SourceLocation Loc,
1554015539 }
1554115540 Res = S.PerformImplicitConversion(Res.get(), AllocatorHandleEnumTy,
1554215541 Sema::AA_Initializing,
15543- /* AllowExplicit */ true);
15542+ /*AllowExplicit=*/ true);
1554415543 if (!Res.isUsable()) {
1554515544 ErrorFound = true;
1554615545 break;
@@ -17643,7 +17642,7 @@ OMPClause *SemaOpenMP::ActOnOpenMPLastprivateClause(
1764317642 if (AssignmentOp.isInvalid())
1764417643 continue;
1764517644 AssignmentOp = SemaRef.ActOnFinishFullExpr(AssignmentOp.get(), ELoc,
17646- /*DiscardedValue*/ false);
17645+ /*DiscardedValue=*/ false);
1764717646 if (AssignmentOp.isInvalid())
1764817647 continue;
1764917648
@@ -18360,7 +18359,7 @@ static bool actOnOMPReductionKindClause(
1836018359 // A list item that appears in a reduction clause must not be
1836118360 // const-qualified.
1836218361 if (rejectConstNotMutableType(S, D, Type, ClauseKind, ELoc,
18363- /*AcceptIfMutable*/ false, ASE || OASE))
18362+ /*AcceptIfMutable=*/ false, ASE || OASE))
1836418363 continue;
1836518364
1836618365 OpenMPDirectiveKind CurrDir = Stack->getCurrentDirective();
@@ -18753,7 +18752,7 @@ static bool actOnOMPReductionKindClause(
1875318752 }
1875418753 if (ReductionOp.isUsable())
1875518754 ReductionOp = S.ActOnFinishFullExpr(ReductionOp.get(),
18756- /*DiscardedValue*/ false);
18755+ /*DiscardedValue=*/ false);
1875718756 if (!ReductionOp.isUsable())
1875818757 continue;
1875918758 }
@@ -19172,7 +19171,7 @@ OMPClause *SemaOpenMP::ActOnOpenMPLinearClause(
1917219171 ExprResult CalcStep = SemaRef.BuildBinOp(
1917319172 SemaRef.getCurScope(), StepLoc, BO_Assign, SaveRef.get(), StepExpr);
1917419173 CalcStep =
19175- SemaRef.ActOnFinishFullExpr(CalcStep.get(), /*DiscardedValue*/ false);
19174+ SemaRef.ActOnFinishFullExpr(CalcStep.get(), /*DiscardedValue=*/ false);
1917619175
1917719176 // Warn about zero linear step (it would be probably better specified as
1917819177 // making corresponding variables 'const').
@@ -19261,7 +19260,7 @@ static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV,
1926119260 else
1926219261 Update = *CurPrivate;
1926319262 Update = SemaRef.ActOnFinishFullExpr(Update.get(), DE->getBeginLoc(),
19264- /*DiscardedValue*/ false);
19263+ /*DiscardedValue=*/ false);
1926519264
1926619265 // Build final: Var = PrivCopy;
1926719266 ExprResult Final;
@@ -19272,7 +19271,7 @@ static bool FinishOpenMPLinearClause(OMPLinearClause &Clause, DeclRefExpr *IV,
1927219271 else
1927319272 Final = *CurPrivate;
1927419273 Final = SemaRef.ActOnFinishFullExpr(Final.get(), DE->getBeginLoc(),
19275- /*DiscardedValue*/ false);
19274+ /*DiscardedValue=*/ false);
1927619275
1927719276 if (!Update.isUsable() || !Final.isUsable()) {
1927819277 Updates.push_back(nullptr);
@@ -19451,7 +19450,7 @@ OMPClause *SemaOpenMP::ActOnOpenMPCopyinClause(ArrayRef<Expr *> VarList,
1945119450 continue;
1945219451 AssignmentOp =
1945319452 SemaRef.ActOnFinishFullExpr(AssignmentOp.get(), DE->getExprLoc(),
19454- /*DiscardedValue*/ false);
19453+ /*DiscardedValue=*/ false);
1945519454 if (AssignmentOp.isInvalid())
1945619455 continue;
1945719456
@@ -19560,7 +19559,7 @@ OMPClause *SemaOpenMP::ActOnOpenMPCopyprivateClause(ArrayRef<Expr *> VarList,
1956019559 if (AssignmentOp.isInvalid())
1956119560 continue;
1956219561 AssignmentOp = SemaRef.ActOnFinishFullExpr(AssignmentOp.get(), ELoc,
19563- /*DiscardedValue*/ false);
19562+ /*DiscardedValue=*/ false);
1956419563 if (AssignmentOp.isInvalid())
1956519564 continue;
1956619565
@@ -20946,7 +20945,7 @@ static ExprResult buildImplicitMapper(Sema &S, QualType BaseType,
2094620945 BaseType, MapperId, Maps, nullptr);
2094720946 Scope *Scope = S.getScopeForContext(DCT);
2094820947 if (Scope)
20949- S.PushOnScopeChains(DMD, Scope, /*AddToContext*/ false);
20948+ S.PushOnScopeChains(DMD, Scope, /*AddToContext=*/ false);
2095020949 DCT->addDecl(DMD);
2095120950 DMD->setAccess(clang::AS_none);
2095220951 auto *VD = cast<DeclRefExpr>(MapperVarRef)->getDecl();
0 commit comments