================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits