Skip to content

Commit f9c66b2

Browse files
committed
add comments to recipe creation as suggested in revivew
1 parent 2ad5fa5 commit f9c66b2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

clang/include/clang/AST/OpenACCClause.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,9 @@ struct OpenACCPrivateRecipe {
845845

846846
bool isSet() const { return AllocaDecl; }
847847

848-
static OpenACCPrivateRecipe Empty() { return OpenACCPrivateRecipe(nullptr); }
848+
static OpenACCPrivateRecipe Empty() {
849+
return OpenACCPrivateRecipe(/*AllocaDecl=*/nullptr);
850+
}
849851
};
850852

851853
class OpenACCPrivateClause final
@@ -905,7 +907,8 @@ struct OpenACCFirstPrivateRecipe {
905907
bool isSet() const { return AllocaDecl; }
906908

907909
static OpenACCFirstPrivateRecipe Empty() {
908-
return OpenACCFirstPrivateRecipe(nullptr, nullptr);
910+
return OpenACCFirstPrivateRecipe(/*AllocaDecl=*/nullptr,
911+
/*InitFromTemporary=*/nullptr);
909912
}
910913
};
911914

@@ -1283,7 +1286,7 @@ struct OpenACCReductionRecipe {
12831286

12841287
bool isSet() const { return AllocaDecl; }
12851288
static OpenACCReductionRecipe Empty() {
1286-
return OpenACCReductionRecipe(nullptr);
1289+
return OpenACCReductionRecipe(/*AllocaDecl=*/nullptr);
12871290
}
12881291
};
12891292

0 commit comments

Comments
 (0)