[clang] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #128640)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 24 08:56:11 PDT 2025
================
@@ -2785,6 +2797,13 @@ StmtResult Parser::ParseOpenMPDeclarativeOrExecutableDirective(
return Directive;
}
}
+ if (CKind == OMPC_otherwise) {
+ // Check for 'otherwise' keyword.
+ if (Tok.is(tok::identifier) &&
+ Tok.getIdentifierInfo()->getName() == "otherwise") {
+ ConsumeToken(); // Consume 'otherwise'
+ }
----------------
alexey-bataev wrote:
Drop braces
https://github.com/llvm/llvm-project/pull/128640
More information about the cfe-commits
mailing list