| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
for "hard" ARC errors, not warnings.
rdar://11691437
llvm-svn: 158781
|
|
|
|
|
|
|
|
|
| |
ObjCInterfaceDec::lookupInstanceMethod to make sure we check categories as well
and update related tests.
rdar://11695288
llvm-svn: 158697
|
|
|
|
|
|
|
|
|
|
| |
+0 method,
automatically insert a __bridge cast.
radar://11560638
llvm-svn: 158127
|
|
|
|
|
|
|
|
|
|
| |
literals,
since the change from +1 to +0 will be handled fine by ARC.
rdar://11606358
llvm-svn: 158114
|
|
|
|
|
|
|
| |
the overriding deprecated/unavailable method.
// rdar://11475360
llvm-svn: 158022
|
|
|
|
|
|
|
|
| |
been declared on NSArray/NSDictionary.
rdar://11581975
llvm-svn: 157951
|
|
|
|
|
|
|
|
|
|
| |
__bridge_retained/__bridge_transfer
when migrating.
rdar://11569198
llvm-svn: 157785
|
|
|
|
| |
llvm-svn: 157404
|
|
|
|
|
|
|
|
|
|
|
| |
idiom that is used commonly in setters:
[backingValue autorelease];
backingValue = [newValue retain]; // in general a +1 assign
rdar://9914061
llvm-svn: 157347
|
|
|
|
|
|
| |
rdar://11501256
llvm-svn: 157227
|
|
|
|
|
|
|
|
|
|
| |
'autorelease' message" ARC
migration error".
Per feedback from John this is useful to have in general.
llvm-svn: 157198
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
message" ARC
migration error.
This is more trouble that it is worth; autoreleasing a value without holding on it
is a valid use-case, we should not "punish" correct code for the minority of
broken/fragile programs that depend on the behavior of -autorelease.
rdar://9914061
llvm-svn: 156999
|
|
|
|
|
|
| |
Part of rdar://11438360
llvm-svn: 156880
|
|
|
|
|
|
|
|
|
|
|
| |
to use the @() boxing syntax.
It will also rewrite uses of stringWithCString:encoding: where the encoding that is
used is NSASCIIStringEncoding or NSUTF8StringEncoding.
rdar://11438360
llvm-svn: 156868
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
llvm-svn: 156844
|
|
|
|
|
|
|
|
| |
the receiver in parentheses when necessary.
Part of rdar://11438360
llvm-svn: 156789
|
|
|
|
|
|
|
|
| |
cast to 'id' for any argument that requires it.
Part of rdar://11438360.
llvm-svn: 156782
|
|
|
|
|
|
|
|
| |
to do a nil check for the result of the call.
rdar://10950973
llvm-svn: 153793
|
|
|
|
|
|
|
|
|
| |
in the interface, got its attribute rewritten twice, resulting in
'weakweak' or 'strongstrong'.
rdar://11047179
llvm-svn: 153621
|
|
|
|
|
|
| |
<rdar://problem/11040133>.
llvm-svn: 153122
|
|
|
|
| |
llvm-svn: 152151
|
|
|
|
|
|
|
|
|
|
|
| |
the new Objective-C NSArray/NSDictionary/NSNumber literal syntax.
This introduces a new library, libEdit, which provides a new way to support
migration of code that improves on the original ARC migrator. We now believe
that most of its functionality can be refactored into the existing libraries,
and thus this new library may shortly disappear.
llvm-svn: 152141
|
|
|
|
|
|
|
|
|
| |
-Make sure we don't change to '__weak' a __block variable used as output.
-Make sure we don't apply __weak twice.
Fixes rdar://10520757&10521362
llvm-svn: 152020
|
|
|
|
|
|
|
|
| |
more harm than good.
Fixes rdar://10522805&10521433
llvm-svn: 151424
|
|
|
|
|
|
|
|
|
| |
used so profusely
in many APIs and large codebases that this made the deprecated warning trigger happy to
the point of not being useful.
llvm-svn: 150223
|
|
|
|
|
|
| |
changing the diagnostic. Also use correct spelling for both.
llvm-svn: 149554
|
|
|
|
|
|
|
|
| |
CFBridgingRetain/CFBridgingRelease calls instead
of __bridge_retained/__bridge_transfer casts as preferred
way of moving cf objects to arc land. // rdar://10207950
llvm-svn: 149449
|
|
|
|
|
|
| |
explicit type cast. // rdar://10521744
llvm-svn: 149437
|
|
|
|
|
|
|
| |
cancel out each other. Leave it alone so users can take a look
(unmigrated code forces error diagnostic). // rdar://10521744
llvm-svn: 149435
|
|
|
|
|
|
|
|
| |
leaves "finalize' behind and in arc mode, does not
include it. This allows the migrated source to be compiled
in both gc and arc mode. // rdar://10532441
llvm-svn: 149079
|
|
|
|
|
|
|
|
|
| |
specific to migrator. Use its first option to
warn migrating from GC to arc when
NSAllocateCollectable/NSReallocateCollectable is used.
// rdar://10532541
llvm-svn: 148887
|
|
|
|
|
|
| |
to "strong" when migrating from GC. // rdar://10532449
llvm-svn: 148607
|
|
|
|
| |
llvm-svn: 148582
|
|
|
|
|
|
|
| |
which have same semantics in mrr as well as arr.
// rdar://10688312
llvm-svn: 148559
|
|
|
|
| |
llvm-svn: 148141
|
|
|
|
| |
llvm-svn: 148138
|
|
|
|
|
|
|
|
| |
http://lab.llvm.org:8011/builders/clang-native-mingw32-win7/
are messed up, XFAIL does not help. Waiting until DISABLE is supported..
llvm-svn: 148012
|
|
|
|
| |
llvm-svn: 147830
|
|
|
|
| |
llvm-svn: 147713
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
diagnostic message are compared. If either is a substring of the other, then
no error is given. This gives rise to an unexpected case:
// expect-error{{candidate function has different number of parameters}}
will match the following error messages from Clang:
candidate function has different number of parameters (expected 1 but has 2)
candidate function has different number of parameters
It will also match these other error messages:
candidate function
function has different number of parameters
number of parameters
This patch will change so that the verification string must be a substring of
the diagnostic message before accepting. Also, all the failing tests from this
change have been corrected. Some stats from this cleanup:
87 - removed extra spaces around verification strings
70 - wording updates to diagnostics
40 - extra leading or trailing characters (typos, unmatched parens or quotes)
35 - diagnostic level was included (error:, warning:, or note:)
18 - flag name put in the warning (-Wprotocol)
llvm-svn: 146619
|
|
|
|
| |
llvm-svn: 146210
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
migrator:
-Allow it to be used with multiple BeginSourceFile/EndSourceFile calls; for this introduce
a "finish" callback method in the DiagnosticConsumer. SDiagsWriter finishes up the serialization
file inside this method.
-Make it independent of any particular DiagnosticsEngine; make it use the SourceManager of the
Diagnostic object.
-Ignore null source ranges.
llvm-svn: 146020
|
|
|
|
|
|
|
| |
methods with these attributes are sent to receivers
of 'id' type too. // rdar://10459930
llvm-svn: 145999
|
|
|
|
|
|
| |
the implementation.
llvm-svn: 145224
|
|
|
|
|
|
| |
__weak from a readonly property.
llvm-svn: 145210
|
|
|
|
|
|
| |
fix the test.
llvm-svn: 144146
|
|
|
|
|
|
| |
redundant 'strong'.
llvm-svn: 144136
|
|
|
|
|
|
| |
type is strong by default too. // rdar://10410903
llvm-svn: 144118
|
|
|
|
|
|
|
|
| |
'(strong)'
property attribute.
llvm-svn: 144078
|
|
|
|
|
|
|
|
| |
__unsafe_unretained
later on, or we will end up with a redundant '__unsafe_unretained'.
llvm-svn: 144059
|