]> granicus.if.org Git - clang/commit
Represent an APValue based on a Decl as that Decl, rather than a DeclRefExpr
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 12 Nov 2011 22:28:03 +0000 (22:28 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 12 Nov 2011 22:28:03 +0000 (22:28 +0000)
commit1bf9a9e6a5bdc0de7939908855dcddf46b661800
tree81774dcc4e8eec6cbd2a95cf48e9236a1771bd30
parent8213ecaa7ce2048f1e10b02f730aefb7fdda57fe
Represent an APValue based on a Decl as that Decl, rather than a DeclRefExpr
or MemberExpr which refers to it. As a side-effect, MemberExprs which refer to
static member functions and static data members are now emitted as constant
expressions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144468 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/APValue.h
lib/AST/APValue.cpp
lib/AST/ExprConstant.cpp
lib/CodeGen/CGExprConstant.cpp
lib/Sema/SemaType.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p8.cpp
test/CodeGenCXX/const-init.cpp
test/SemaCXX/constant-expression-cxx11.cpp