[clang] [OpenACC] Implement beginning parts of the 'parallel' Sema impl (PR #81659)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 15 07:07:41 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);
----------------
erichkeane wrote:

Sure, I can do that.

https://github.com/llvm/llvm-project/pull/81659


More information about the cfe-commits mailing list