[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 13 07:17:10 PST 2023
================
@@ -208,6 +233,10 @@ OpenACCDirectiveKind ParseOpenACCDirectiveKind(Parser &P) {
// introspect on the spelling before then.
if (FirstTok.isNot(tok::identifier)) {
P.Diag(FirstTok, diag::err_acc_missing_directive);
+
+ if (!FirstTok.isAnnotation())
+ P.ConsumeAnyToken();
----------------
erichkeane wrote:
Done!
https://github.com/llvm/llvm-project/pull/75052
More information about the cfe-commits
mailing list