]> granicus.if.org Git - clang/commit
[OpenMP] Diagnose function name on the link clause
authorKelvin Li <kkwli0@gmail.com>
Tue, 12 Dec 2017 20:08:12 +0000 (20:08 +0000)
committerKelvin Li <kkwli0@gmail.com>
Tue, 12 Dec 2017 20:08:12 +0000 (20:08 +0000)
commitc607ed2198755b84cd63e5cc4bbd3a0ba4279ea1
treea995df7f051e70d3fb984b8cd8af8c9a17d335e1
parent65e2ef95afb1d7b50394b16d7aa306c043f945b9
[OpenMP] Diagnose function name on the link clause

This patch is to add diagnose when a function name is
specified on the link clause. According to the  OpenMP
spec, only the list items that exclude the function
name are allowed on the link clause.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320521 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaOpenMP.cpp
test/OpenMP/declare_target_ast_print.cpp
test/OpenMP/declare_target_messages.cpp