[Openmp-commits] [PATCH] D105648: [OpenMP] Support OpenMP 5.1 attributes

Corentin Jabot via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jul 8 14:44:46 PDT 2021


cor3ntin added inline comments.


================
Comment at: clang/lib/Parse/ParseDeclCXX.cpp:2670-2676
+
+  // The next token may be an OpenMP pragma annotation token. That would
+  // normally be handled from ParseCXXClassMemberDeclarationWithPragmas, but in
+  // this case, it came from an *attribute* rather than a pragma. Handle it now.
+  if (Tok.is(tok::annot_pragma_openmp_from_attr))
+    return ParseOpenMPDeclarativeDirectiveWithExtDecl(AS, attrs);
+
----------------
The comment raises 2 questions: should it be called `annot_openmp_attr` instead? Does the comment describe what this does?
I imagine long terms attributes might be the ""normal"" scenario?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105648/new/

https://reviews.llvm.org/D105648



More information about the Openmp-commits mailing list