| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Also removed check for "NS" prefix for class name.
llvm-svn: 187655
|
|
|
|
|
|
|
|
|
|
| |
with certain prefix selector matching their class names' suffix."
This reverts commit r187626.
It is breaking the bots.
llvm-svn: 187634
|
|
|
|
|
|
|
| |
for mehods with certain prefix selector matching their class names'
suffix.
llvm-svn: 187626
|
|
|
|
|
|
|
|
| |
Expose static type of init/alloc/retain with
instance type as well. Ad-hoc cases are coming
next.
llvm-svn: 187068
|
|
|
|
|
|
|
| |
migrating to instancetype can have implicit 'id'
type too.
llvm-svn: 187062
|
|
|
|
|
|
| |
instancetype of NSDictionary methods.
llvm-svn: 187008
|
|
|
|
|
|
| |
instancetype methods.
llvm-svn: 187004
|
|
|
|
|
|
|
| |
protocols by ignoring cases where all protocol properties
and methods are optional.
llvm-svn: 186895
|
|
|
|
|
|
| |
have shift/bitwise operators or are power of 2.
llvm-svn: 186856
|
|
|
|
|
|
|
|
| |
ARC errors in the checking phase.
rdar://14490204
llvm-svn: 186850
|
|
|
|
|
|
| |
declaration which can be migrated to NS_ENUM.
llvm-svn: 186716
|
|
|
|
|
|
|
|
|
|
| |
"@synthesize of 'weak' property is only
allowed in ARC" errors.
rdar://14461559
llvm-svn: 186709
|
|
|
|
|
|
| |
in file is an enum.
llvm-svn: 186700
|
|
|
|
|
|
| |
NS_OPTIONS.
llvm-svn: 186641
|
|
|
|
|
|
|
| |
declaration when converting to NS_ENUM. This required
some code refactoring.
llvm-svn: 186619
|
|
|
|
|
|
| |
- wip.
llvm-svn: 186604
|
|
|
|
|
|
|
| |
only add outer-most conforming protocols as adding
others are redundant.
llvm-svn: 186473
|
|
|
|
|
|
| |
properties, then class conforms to that protocol.
llvm-svn: 186460
|
|
|
|
|
|
|
| |
declaration to include list of protocols class
conforms to.
llvm-svn: 186443
|
|
|
|
|
|
|
|
|
|
|
|
| |
migrate to 'copy attribute if Object
class implements NSCopying otherwise
assume implied 'strong'. Remove
lifetime qualifier on property as it has
moved to property's attribute. Added TODO
comment for future work by poking into
setter implementation.
llvm-svn: 186037
|
|
|
|
|
|
|
| |
attributes in migration. Specialli use of
'copy' attribute for retainable object types.
llvm-svn: 185985
|
|
|
|
|
|
|
| |
migration. Also, fixes an old bug where older migration
flags were not being checked for properly.
llvm-svn: 185948
|
|
|
|
|
|
| |
properties.
llvm-svn: 185884
|
|
|
|
|
|
| |
for now.
llvm-svn: 185879
|
|
|
|
|
|
| |
their equivalent property declaration. wip.
llvm-svn: 185873
|
|
|
|
|
|
|
| |
This is at least good documentation, but also opens the possibility of
using pipefail.
llvm-svn: 185652
|
|
|
|
|
|
|
|
|
|
| |
passed to avoid the
"argument unused during compilation" warning.
rdar://14240566
llvm-svn: 184776
|
|
|
|
|
|
|
|
|
|
|
|
| |
message, to the selector location.
Previously it would point to the left bracket or the receiver, which can be particularly
problematic if the receiver is a block literal and we end up point the diagnostic far away
for the selector that is complaining about.
rdar://13620447
llvm-svn: 180833
|
|
|
|
|
|
| |
rdar://13181413
llvm-svn: 178942
|
|
|
|
|
|
|
|
| |
before checking for its attributes.
rdar://13192395
llvm-svn: 175184
|
|
|
|
|
|
| |
rdar://13140508
llvm-svn: 174386
|
|
|
|
|
|
| |
error. Jordan is right.
llvm-svn: 173713
|
|
|
|
|
|
| |
<rdar://problem/13098104>.
llvm-svn: 173708
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
dictionary literal
if we can see the elements of the arrays.
for example:
NSDictionary *dict = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"1", @"2", nil] forKeys:[NSArray arrayWithObjects:@"A", @"B", nil]];
-->
NSDictionary *dict = @{ @"A" : @"1", @"B" : @"2" };
rdar://12428166
llvm-svn: 172679
|
|
|
|
|
|
|
|
|
| |
statements,
that the case does not "contain" a declaration that is referenced "outside" of it,
otherwise we will emit un-compilable code.
llvm-svn: 171828
|
|
|
|
|
|
|
|
| |
previous statement.
rdar://11074996
llvm-svn: 171485
|
|
|
|
|
|
|
|
|
|
| |
retaining
variable, thus emitting the "switch case is in protected scope" error.
rdar://12952016
llvm-svn: 171484
|
|
|
|
|
|
|
|
| |
-autorelease.
rdar://12952025
llvm-svn: 171482
|
|
|
|
|
|
|
|
|
|
|
|
| |
c = Block_copy(b);
Block_release(c);
---->
c = [b copy];
<removed>
rdar://9408211
llvm-svn: 171454
|
|
|
|
|
|
|
|
|
|
| |
"expected-*" directive. As a result, for test-cases that are not expected to generate any diagnostics, an additional directive "expected-no-diagnostics" has been implemented which can then be included in such test-cases. This new directive may not be used in conjunction with any other "expected-*" directive.
This change was initially proposed as a solution to the problem highlighted by check-in r164677, i.e. that -verify will not cause a test-case failure where the compile command does not actually reference the file.
Patch reviewed by David Blaikie.
llvm-svn: 166281
|
|
|
|
|
|
| |
// rdar://10554025
llvm-svn: 163917
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The old behavior was to re-scan any files (like modules) where we may have
directives but won't actually be parsing during the -verify invocation.
Now, we keep the old behavior in Debug builds as a sanity check (though
modules are a known entity), and expect all legitimate directives to come
from comments seen by the preprocessor.
This also affects the ARC migration tool, which captures diagnostics in
order to filter some out. This change adds an explicit cleanup to
CaptureDiagnosticsConsumer in order to let its sub-consumer handle the
real end of diagnostics.
This was originally split into four patches, but the tests do not run
cleanly without all four, so I've combined them into one commit.
Patches by Andy Gibbs, with slight modifications from me.
llvm-svn: 161650
|
|
|
|
|
|
|
|
|
|
| |
type of generated call to super dealloc is 'void'
and asserts if user's dealloc is not of 'void type.
This rule must be enforced in clang front-end (with a
fixit) if this is not the case, instead of asserting in CodeGen.
// rdar://11987838
llvm-svn: 160993
|
|
|
|
| |
llvm-svn: 160895
|
|
|
|
|
|
|
|
| |
retainable types in arc, only suggest CFBridgingRelease/
CFBridgingRetain and not the confusing __bridge casts.
// rdar://11923822
llvm-svn: 160839
|
|
|
|
|
|
|
|
| |
nullptr.
Fixes PR13413, -Wunused-private-field now warns on unused fields initialized to NULL.
llvm-svn: 160541
|
|
|
|
|
|
|
|
|
|
|
|
| |
that the migrator handles) but return their instances as 'id', resulting
in the compiler resolving 'objectForKey:' as the method from NSDictionary.
When checking if we can convert to subscripting syntax, check whether
the receiver is a result of a class method from a hardcoded list of
such classes. In such a case return the specific class as the interface
of the receiver.
llvm-svn: 159788
|
|
|
|
|
|
|
|
|
| |
(apart from NSDictionary/NSArray) that implement objectForKey:/objectAtIndex/etc.
and the subscripting methods as well.
Part of rdar://11734969
llvm-svn: 159783
|
|
|
|
|
|
|
| |
objective-c's fast enumeration statement,
for more work to come.
llvm-svn: 159689
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[NSNumber numberWithDouble:cppb];
warning: converting to boxing syntax requires a cast
to something like:
[NSNumber numberWithDouble:cppb];
warning: converting to boxing syntax requires casting 'bool' to 'double'
This is way better to fully understand the warning.
rdar://11705106
llvm-svn: 158783
|