]> granicus.if.org Git - clang/commit
[Sema] Don't skip function bodies with 'auto' without trailing return type
authorIlya Biryukov <ibiryukov@google.com>
Wed, 30 May 2018 12:50:48 +0000 (12:50 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 30 May 2018 12:50:48 +0000 (12:50 +0000)
commit87f534de23684622a8650ac211aced93a6cbc3a3
treebc2f99d4646f90b4aad0d36f1146487650ecb4fb
parent170c6a338ffb3d399482e73d6f53f10ec1173a8a
[Sema] Don't skip function bodies with 'auto' without trailing return type

Summary:
Skipping them was clearly not intentional. It's impossible to
guarantee correctness if the bodies are skipped.
Also adds a test case for r327504, now that it does not produce
invalid errors that made the test fail.

Reviewers: aaron.ballman, sammccall, rsmith

Reviewed By: rsmith

Subscribers: rayglover-ibm, rwols, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333538 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/CodeCompletion/crash-skipped-bodies-template-inst.cpp [new file with mode: 0644]
test/CodeCompletion/skip-auto-funcs.cpp [new file with mode: 0644]