[clang] [OpenMP] Diagnose use of 'target_clones' in OpenMP variant declarations.
authorTom Honermann <tom.honermann@intel.com>
Tue, 15 Mar 2022 21:43:58 +0000 (14:43 -0700)
committerTom Honermann <tom@honermann.net>
Mon, 21 Mar 2022 17:39:44 +0000 (13:39 -0400)
commit059a953d8819b361b33205c109b5e903801613a2
tree37c65a5deda8c0521b776744081afb12b4147008
parent8ff8c3ac0dd675319d779a1aa0087e8a0d5a81b2
[clang] [OpenMP] Diagnose use of 'target_clones' in OpenMP variant declarations.

Previously, OpenMP variant declarations for a function declaration that included
the 'cpu_dispatch', 'cpu_specific', or 'target' attributes was diagnosed, but
one with the 'target_clones' attribute was not. Now fixed.

Reviewed By: erichkeane, jdoerfert

Differential Revision: https://reviews.llvm.org/D121963
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/declare_variant_messages.c