]> granicus.if.org Git - clang/commit
Implement implicit conversions for Objective-C specific types, e.g.,
authorDouglas Gregor <dgregor@apple.com>
Wed, 26 Nov 2008 23:31:11 +0000 (23:31 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 26 Nov 2008 23:31:11 +0000 (23:31 +0000)
commitcb7de523cc2ad5635f235e15b12867e6b349441f
tree03cd5ec037d9e31c6798e8f62c9ec8a9ed689183
parentb2eb0b494c2384f3935e5092d4227e4ea62eacb1
Implement implicit conversions for Objective-C specific types, e.g.,
converting a pointer to one Objective-C interface into a pointer to another
Objective-C interface, and conversions with 'id'. The semantics seems
to match GCC, although they seem somewhat ad hoc.

Fixed a few cases where we assumed the C++ definition of isObjectType,
but were getting the C definition, causing failures in trouble with
conversions to void pointers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60130 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/clang.cpp
lib/Sema/SemaOverload.cpp
test/SemaObjCXX/overload.mm [new file with mode: 0644]