[flang-commits] [clang] [flang] [llvm] [CLANG][OpenMP] Add support for OpenMP6.0 transparent clause (PR #166810)

Zahira Ammarguellat via flang-commits flang-commits at lists.llvm.org
Fri Dec 26 09:25:19 PST 2025


================
@@ -17424,6 +17431,48 @@ OMPClause *SemaOpenMP::ActOnOpenMPThreadsetClause(OpenMPThreadsetKind Kind,
       OMPThreadsetClause(Kind, KindLoc, StartLoc, LParenLoc, EndLoc);
 }
 
+OMPClause *SemaOpenMP::ActOnOpenMPTransparentClause(Expr *ImpexTypeArg,
+                                                    SourceLocation StartLoc,
+                                                    SourceLocation LParenLoc,
+                                                    SourceLocation EndLoc) {
+  if (ImpexTypeArg->getType()->isTypedefNameType()) {
----------------
zahiraam wrote:

If it's not a typedef it will fall into the call `VerifyPositiveIntegerConstantInClause` below.  That would catch all the cases I think?

https://github.com/llvm/llvm-project/pull/166810


More information about the flang-commits mailing list