[OPENMP50]Do not allow multiple same context traits in the same context
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 8 Oct 2019 17:47:52 +0000 (17:47 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 8 Oct 2019 17:47:52 +0000 (17:47 +0000)
commit70d2e5427ed31889456fac933c3e596b4bb5a762
treedcfe2df9dc95b4378d98eb75885b73c7eb5f4708
parent190a17bbd1c24f677ba0fdca6df97d9cd208e131
[OPENMP50]Do not allow multiple same context traits in the same context
selector.

According to OpenMP 5.0, 2.3.2 Context Selectors, Restrictions, each
trait-selector-name can only be specified once. Added check for this
restriction.

llvm-svn: 374093
clang/include/clang/Basic/DiagnosticParseKinds.td
clang/lib/Parse/ParseOpenMP.cpp
clang/test/OpenMP/declare_variant_ast_print.c
clang/test/OpenMP/declare_variant_ast_print.cpp
clang/test/OpenMP/declare_variant_messages.c
clang/test/OpenMP/declare_variant_messages.cpp