]> granicus.if.org Git - clang/commit
Insert a space if necessary when suggesting CFBridgingRetain/Release.
authorJordan Rose <jordan_rose@apple.com>
Thu, 7 Jun 2012 01:10:31 +0000 (01:10 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 7 Jun 2012 01:10:31 +0000 (01:10 +0000)
commitd880b3aa6d594d1a7f2d307c29378c6f59b216ff
treef88efcd96cd6e1311ca245c37d712d51aee82b2b
parent76a5245d7fb558625453ebe2281ee0bc9c93c245
Insert a space if necessary when suggesting CFBridgingRetain/Release.

This was a problem for people who write 'return(result);'

Also fix ARCMT's corresponding code, though there's no test case for this
because implicit casts like this are rejected by the migrator for being
ambiguous, and explicit casts have no problem.

<rdar://problem/11577346>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158130 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/Lexer.h
lib/ARCMigrate/TransUnbridgedCasts.cpp
lib/Lex/Lexer.cpp
lib/Sema/SemaExprObjC.cpp
test/SemaObjC/arc-bridged-cast.m