]> granicus.if.org Git - clang/commit
Refactor constant expression handling and make a couple of tweaks to make it a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 5 Nov 2013 22:18:15 +0000 (22:18 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 5 Nov 2013 22:18:15 +0000 (22:18 +0000)
commitf490f0eaba5fed6236d8f8a965a2fd98fa41e891
treec41467cee98b253f67b7d4584b600932eb8c35a9
parent1d5cce4f284519bdd1218c8f095462a518b47286
Refactor constant expression handling and make a couple of tweaks to make it a
bit more robust against future changes. This includes a slight diagnostic
improvement: if we know we're only trying to form a constant expression, take
the first diagnostic which shows the expression is not a constant expression,
rather than preferring the first one which makes the expression unfoldable.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194098 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/SemaCXX/constant-expression-cxx11.cpp