OSDN Git Service

[OpenMP] Attribute target diagnostics properly
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 29 Jan 2021 08:42:20 +0000 (02:42 -0600)
committerTom Stellard <tstellar@redhat.com>
Mon, 15 Feb 2021 19:57:50 +0000 (11:57 -0800)
commit3b9ea2dc8eeb3c3893213f57d532b32ef3619859
tree031adbb1f9196d9d7fb4247178fdac85e5b3a7ee
parent343ba9730b7d2166b5ce61f770413782573ea224
[OpenMP] Attribute target diagnostics properly

Type errors in function declarations were not (always) diagnosed prior
to this patch. Furthermore, certain remarks did not get associated
properly which caused them to be emitted multiple times.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D95912

(cherry picked from commit f9286b434b764b366f1aad9249c04e7741ed5518)
clang/include/clang/Sema/Sema.h
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/nvptx_unsupported_type_messages.cpp