]> granicus.if.org Git - clang/commit
C++1y auto return type: when a function contains no 'return' statements at all,
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 10 May 2013 04:31:10 +0000 (04:31 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 10 May 2013 04:31:10 +0000 (04:31 +0000)
commit25d8c856681120581315edcdb48257c99af6b45c
tree4f1f7608d0c59aa574e0d9ff5cba57d932f40957
parent8f1900376906c51aabf5fd18a39524e2318276ba
C++1y auto return type: when a function contains no 'return' statements at all,
substitute 'void' into the return type rather than replacing it with 'void', so
that we maintain the 'auto' type sugar.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181584 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
lib/Sema/SemaStmt.cpp
test/SemaCXX/cxx1y-deduced-return-type.cpp