[PATCH] D30135: [OpenMP] Generate better diagnostics for cancel and cancellation point

Jonas Hahnfeld via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 18 03:40:45 PST 2017


Hahnfeld created this revision.

Handle errors related to a specific directive before checking the nesting:
The specific checks may validate required arguments and give more helpful
messages, especially when the nesting depends on those arguments.

This change requires some minor adaptions to the tests to maintain the
expected diagnostics.


https://reviews.llvm.org/D30135

Files:
  lib/Sema/SemaOpenMP.cpp
  test/OpenMP/cancel_messages.cpp
  test/OpenMP/cancellation_point_messages.cpp
  test/OpenMP/nesting_of_regions.cpp
  test/OpenMP/task_messages.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30135.89021.patch
Type: text/x-patch
Size: 5882 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170218/d0182b11/attachment.bin>


More information about the cfe-commits mailing list