[PATCH] D74941: [OpenMP] `omp begin/end declare variant` - part 1, parsing

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 21 07:28:00 PST 2020


ABataev added inline comments.


================
Comment at: clang/lib/Parse/ParseOpenMP.cpp:1357-1359
+  // Skip last tokens.
+  while (Tok.isNot(tok::annot_pragma_openmp_end))
+    ConsumeAnyToken();
----------------
Better to emit a warning here about extra tokens at the end of the directive


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74941





More information about the cfe-commits mailing list