[clang] default clause replaced by otherwise clause for metadirective in OpenMP 5.2 (PR #128640)
Urvi Rav via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 30 00:01:36 PDT 2025
================
@@ -1,105 +1,33 @@
-// RUN: %clang_cc1 -verify -fopenmp -x c++ -triple x86_64-unknown-linux -emit-llvm %s -o - | FileCheck %s
-// expected-no-diagnostics
-
+// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=52 -DOMP52 -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
----------------
ravurvi20 wrote:
In this case, I’ve only changed the printed spelling from default to otherwise for OpenMP metadirective. This is purely a printing change — no new AST nodes or data structures were introduced or modified. The existing AST structure remains unchanged. The `metadirective_ast_print.c` test case includes all relevant checks to verify the updated `-ast-print` output.
https://github.com/llvm/llvm-project/pull/128640
More information about the cfe-commits
mailing list