[clang] [OpenMP][TR12] change property of map-type modifier. (PR #90499)

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 30 12:50:49 PDT 2024


================
@@ -4675,8 +4709,10 @@ bool Parser::ParseOpenMPVarList(OpenMPDirectiveKind DKind,
     // Only parse map-type-modifier[s] and map-type if a colon is present in
     // the map clause.
     if (ColonPresent) {
+      if (getLangOpts().OpenMP >= 60 && getCurToken().is(tok::colon))
----------------
jyu2-git wrote:

I only need to emit error for map(: a),   I don't need emit error like map(,,: a), since the error already emit during parseMapTypeModifiers. 

The ColonPresent will be set for when ":" exist for map clause.

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


More information about the cfe-commits mailing list