diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-05-15 19:17:49 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-05-15 19:17:49 +0000 |
| commit | 0d578a6f873697309e6dd027352fa0716e29986f (patch) | |
| tree | 8ddba9c7f9494d535c511bcf1b882311f971eb22 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | f5343ff93a9549c49469dee366733e1e31ab836e (diff) | |
| download | clang-0d578a6f873697309e6dd027352fa0716e29986f.tar.gz clang-0d578a6f873697309e6dd027352fa0716e29986f.tar.bz2 clang-0d578a6f873697309e6dd027352fa0716e29986f.tar.xz | |
[objcmt] Rewrite [NSNumber numberWith*] messages to the new @() boxing syntax.
There are some caveats:
-If an implicit cast (e.g. int -> float for numberWithFloat:) was required, the message
will not get rewritten
-If the message was with numberWithInteger:/numberWithUnsignedInteger:, which are very
commonly used, be more liberal and allow the boxing syntax if the underlying type has
same signedness and will not lose precision.
Part of rdar://11438360
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
