[cfe-commits] r107007 - in /cfe/trunk: include/clang/AST/Expr.h lib/AST/CMakeLists.txt lib/AST/Expr.cpp lib/AST/ExprClassification.cpp

Douglas Gregor dgregor at apple.com
Tue Jun 29 08:08:05 PDT 2010


On Jun 28, 2010, at 8:09 AM, Sebastian Redl wrote:

> Author: cornedbee
> Date: Mon Jun 28 10:09:07 2010
> New Revision: 107007
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=107007&view=rev
> Log:
> 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.

Great, I like this approach a lot. We can gradually move Sema over to Classify to deal with rvalue references properly. Thanks!

	- Doug



More information about the cfe-commits mailing list