[OPENMP]Fix parsing/sema for function templates with declare simd.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 16 Sep 2019 17:06:31 +0000 (17:06 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 16 Sep 2019 17:06:31 +0000 (17:06 +0000)
commita00630785fc7bbc723950543b0d82b6a70bfc797
tree6cb70496615e6dc9b83af0da26874c80c1e6024c
parent10151f661854e3ee4922662f1d0f62b327cbfa8c
[OPENMP]Fix parsing/sema for function templates with declare simd.

Need to return original declaration group with FunctionTemplateDecl, not
the inner FunctionDecl, to correctly handle parsing of directives with
the templates parameters.

llvm-svn: 372011
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/declare_simd_ast_print.cpp