]> granicus.if.org Git - clang/commit
C++1y: support for 'switch' statements in constexpr functions. This is somewhat
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 12 May 2013 17:32:42 +0000 (17:32 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 12 May 2013 17:32:42 +0000 (17:32 +0000)
commit284b3cbfd1cd5b6585437fbb8b95fe136f273efb
treed87bba3e962ee9dbb86f6b9000b8171bf14ff7da
parentf45c2992a3aac7591310cd824b7c7319afd432fc
C++1y: support for 'switch' statements in constexpr functions. This is somewhat
inefficient; we perform a linear scan of switch labels to find the one matching
the condition, and then walk the body looking for that label. Both parts should
be straightforward to optimize.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181671 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Stmt.h
lib/AST/ExprConstant.cpp
test/SemaCXX/constant-expression-cxx1y.cpp