================ @@ -37,6 +37,32 @@ bool diagnoseConstructAppertainment(SemaOpenACC &S, OpenACCDirectiveKind K, } return false; } + +bool doesClauseApplyToDirective(OpenACCDirectiveKind DirectiveKind, + OpenACCClauseKind ClauseKind) { + switch (ClauseKind) { + // FIXME: For each clause as we implement them, we can add the + // 'legalization' list here. + default: + // Do nothing so we can go to the 'unimplemented' diagnostic instead. + return true; + } + llvm_unreachable("Invalid clause kind"); +} + +/// Destruct and deallocate any clauses that aren't going to be used because +/// they don't have a Construct to attach to. +void DestroyUnusedClauses(ASTContext &Ctx, ---------------- erichkeane wrote:
I discussed this with Aaron who confirmed that because we're allocating in the ASTContext::Allocate pool that we're fine to skip destruction, so I'm just going to do that. https://github.com/llvm/llvm-project/pull/87821 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits