]> granicus.if.org Git - clang/commit
[Frontend] Handle skipped bodies in template instantiations
authorIlya Biryukov <ibiryukov@google.com>
Wed, 20 Dec 2017 14:32:38 +0000 (14:32 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 20 Dec 2017 14:32:38 +0000 (14:32 +0000)
commit08191e917b90c971dcbcbecf8f89ec1e661fa3b0
treef91bb3fee07675679a05c988ce873d919edb0e45
parent0604b824fdd2e3b0c6705a4b7aabc532ebb4613e
[Frontend] Handle skipped bodies in template instantiations

Summary:
- Fixed an assert in Sema::InstantiateFunctionDefinition and added
  support for instantiating a function template with skipped body.
- Properly call setHasSkippedBody for FunctionTemplateDecl passed to
  Sema::ActOnSkippedFunctionBody.

Reviewers: sepavloff, bkramer

Reviewed By: sepavloff

Subscribers: klimek, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321174 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/Index/skipped-bodies-templates.cpp [new file with mode: 0644]