llvm-project/clang/lib
Douglas Gregor 5b07c7ec05 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. 

Also, upgrade the "comparing distinct pointer types" from a warning to
an error for C++, since this is clearly an error. Turns out that we
hadn't gone through and audited this code for C++, ever. 

Fixes <rdar://problem/6816420>.

llvm-svn: 70829
2009-05-04 06:07:12 +00:00
..
AST Add -fobjc-tight-layout. 2009-05-04 05:16:21 +00:00
Analysis retain checker: 2009-05-04 05:31:22 +00:00
Basic Hook msp430 in 2009-05-03 13:43:08 +00:00
CodeGen PR4143: don't crash generating debug info for incomplete enum types. 2009-05-04 04:39:55 +00:00
Driver Add -fobjc-tight-layout. 2009-05-04 05:16:21 +00:00
Frontend Fix an infinite loop in diagnostic printing. 2009-05-03 23:04:40 +00:00
Headers Fix for PR3841: follow gcc's example and fall back to the system 2009-05-03 23:00:48 +00:00
Lex Fix for PR4132: make sure to insert whitespace consistently before a 2009-05-03 19:16:00 +00:00
Parse Don't insert an extra ParenExpr around asm operands. 2009-05-03 07:49:42 +00:00
Rewrite Change Lexer::MeasureTokenLength to take a LangOptions reference. 2009-04-14 23:22:57 +00:00
Sema Implement support for comparing pointers with <, >, <=, >=, ==, and != 2009-05-04 06:07:12 +00:00
CMakeLists.txt Really fix cmake style builds. 2009-03-24 17:52:34 +00:00
Makefile Stub out some structure for C++ driver. 2009-03-02 19:59:07 +00:00