]> granicus.if.org Git - clang/commit
Introduce Expr::Classify and Expr::ClassifyModifiable, which determine the classifica...
authorSebastian Redl <sebastian.redl@getdesigned.at>
Mon, 28 Jun 2010 15:09:07 +0000 (15:09 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Mon, 28 Jun 2010 15:09:07 +0000 (15:09 +0000)
commit2111c855343a0530e236bf0862358ec8d67b28f3
tree5a14f7e42a9f36f389fec6b8da2aca1fab5c9d5a
parentde4bd18bb45a1db68996cfb949db3015fc25d10d
Introduce Expr::Classify and Expr::ClassifyModifiable, which determine the classification of an expression under the C++0x taxology (value category). Reimplement isLvalue and isModifiableLvalue using these functions. No regressions in the test suite from this, and my rough performance check doesn't show any regressions either.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107007 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Expr.h
lib/AST/CMakeLists.txt
lib/AST/Expr.cpp
lib/AST/ExprClassification.cpp [new file with mode: 0644]