[clang] [OpenACC] Implement beginning parts of the 'parallel' Sema impl (PR #81659)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 15 06:52:59 PST 2024
================
@@ -745,9 +745,14 @@ bool Parser::ParseOpenACCClause(OpenACCDirectiveKind DirKind) {
<< getCurToken().getIdentifierInfo();
// Consume the clause name.
- ConsumeToken();
+ SourceLocation ClauseLoc = ConsumeToken();
+
+ bool ParamsResult = ParseOpenACCClauseParams(DirKind, Kind);
- return ParseOpenACCClauseParams(DirKind, Kind);
+ // TODO OpenACC: this whole function should return a 'clause' type optional
+ // instead of bool, so we likely want to return the clause here.
+ getActions().ActOnOpenACCClause(Kind, ClauseLoc);
----------------
alexey-bataev wrote:
This one does not nothing right now, just emit error message. Can you split it and implement in a separate patch?
https://github.com/llvm/llvm-project/pull/81659
More information about the cfe-commits
mailing list