]> granicus.if.org Git - clang/commit
[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)
commitef440caa0d55f6add3fdf23a55ebaa5e98ded541
tree55496050bf317df093d86e69d22628457d4038e9
parent36fa0d71c9d8086b7b53d0fa6eb60da8e3af11db
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374093 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
lib/Parse/ParseOpenMP.cpp
test/OpenMP/declare_variant_ast_print.c
test/OpenMP/declare_variant_ast_print.cpp
test/OpenMP/declare_variant_messages.c
test/OpenMP/declare_variant_messages.cpp