]> granicus.if.org Git - clang/commit
[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)
commitc463cf8d624358e6d711e2153f4154a4784553c9
tree70ec3b7816106af3540fed4142eb2ab5d31e9b98
parent0893e1af68d335269269708ed16c9e9815f54f72
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372011 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOpenMP.cpp
test/OpenMP/declare_simd_ast_print.cpp