[cfe-commits] r70829 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/Sema.h lib/Sema/SemaExpr.cpp lib/Sema/SemaExprCXX.cpp test/SemaCXX/composite-pointer-type.cpp test/SemaCXX/elaborated-type-specifier.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Mon May 4 20:51:48 PDT 2009


On Mon, 04 May 2009 06:07:13 -0000, Douglas Gregor <dgregor at apple.com>
wrote:
> Author: dgregor
> Date: Mon May  4 01:07:12 2009
> New Revision: 70829
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=70829&view=rev
> Log:
> Implement support for comparing pointers with <, >, <=, >=, ==, and !=
> in C++, taking into account conversions to the "composite pointer
> type" so that we can compare, e.g., a pointer to a derived class to a
> pointer to a base class. 
> 
> +  QualType CompositePointerType(Expr *LHS, Expr *RHS,
> +                                bool LHSIsNull, bool RHSIsNull);
>  

Hmm, I'm pretty sure I implemented the same thing for the conditional
operator ...

Sebastian



More information about the cfe-commits mailing list