[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
dgregor at apple.com
Mon May 4 21:51:11 PDT 2009
On May 4, 2009, at 9:51 PM, Sebastian Redl wrote:
> On Mon, 04 May 2009 06:07:13 -0000, Douglas Gregor <dgregor at apple.com>
>> Author: dgregor
>> Date: Mon May 4 01:07:12 2009
>> New Revision: 70829
>> URL: http://llvm.org/viewvc/llvm-project?rev=70829&view=rev
>> 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 ...
Yes you did! I'm switching over to your version, which is better.
More information about the cfe-commits