================
@@ -17424,6 +17431,47 @@ OMPClause 
*SemaOpenMP::ActOnOpenMPThreadsetClause(OpenMPThreadsetKind Kind,
       OMPThreadsetClause(Kind, KindLoc, StartLoc, LParenLoc, EndLoc);
 }
 
+/// Retrieves the `omp_impex_t` type from the current scope and adds the 
`const`
+/// qualifier.
+///
+/// @param S The Sema object used for symbol resolution.
+/// @param Loc The source location for diagnostic messages.
+/// @returns A `QualType` representing the `omp_impex_t` type with the `const`
+/// qualifier, or an invalid `QualType` if the type cannot be found.
+static QualType getOMPImpexT(Sema &S, SourceLocation Loc) {
----------------
zahiraam wrote:

This is used in `ActOnOpenMPTransparentClause`.
No need for this?
`QualType ImpexTy = getOMPImpexT(SemaRef, ImpexTypeArg->getExprLoc());`
`if (ImpexTy.isNull())`
  `return nullptr;`


https://github.com/llvm/llvm-project/pull/166810
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to