]> granicus.if.org Git - clang/commit
C++1y constexpr extensions, round 1: Allow most forms of declaration and
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 22 Apr 2013 15:31:51 +0000 (15:31 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 22 Apr 2013 15:31:51 +0000 (15:31 +0000)
commita10b97898ee6339c3110e6ca33f178ff52f05238
treef9d49e4f10fe8063997db53fd0611a0b6b0d7c27
parent19258e8ba5904a04eaa09b7559206e87dccf07a2
C++1y constexpr extensions, round 1: Allow most forms of declaration and
statement in constexpr functions. Everything which doesn't require variable
mutation is also allowed as an extension in C++11. 'void' becomes a literal
type to support constexpr functions which return 'void'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180022 91177308-0d34-0410-b5e6-96231b3b80d8
17 files changed:
include/clang/AST/Type.h
include/clang/Basic/DiagnosticASTKinds.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/DeclCXX.cpp
lib/AST/Expr.cpp
lib/AST/ExprConstant.cpp
lib/AST/Type.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaType.cpp
test/CXX/basic/basic.types/p10.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p3.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p4.cpp
test/CXX/except/except.spec/p1.cpp
test/SemaCXX/constant-expression-cxx11.cpp
test/SemaCXX/constant-expression-cxx1y.cpp [new file with mode: 0644]