[objcmt] When rewriting to array/dictionary literals, add an explicit
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 14 May 2012 22:01:53 +0000 (22:01 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 14 May 2012 22:01:53 +0000 (22:01 +0000)
commitc1dfed6572b58515747d59fce045cfdacf8a6b1c
tree6da1a7d0da848c1b1a3b4f01fde3c01a70faf63d
parentbb653bd5f95328a676ac80a2cfe33e26a6fcd7b8
[objcmt] When rewriting to array/dictionary literals, add an explicit
cast to 'id' for any argument that requires it.

Part of rdar://11438360.

llvm-svn: 156782
clang/lib/Edit/EditedSource.cpp
clang/lib/Edit/RewriteObjCFoundationAPI.cpp
clang/test/ARCMT/objcmt-numeric-literals.m
clang/test/ARCMT/objcmt-numeric-literals.m.result
clang/test/ARCMT/objcmt-subscripting-literals.m
clang/test/ARCMT/objcmt-subscripting-literals.m.result