| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
the return type is already that.
rdar://16961577
llvm-svn: 209264
|
|
|
|
|
|
|
| |
This diagnostic is now controlled solely by -no-ns-alloc-error thus matching
the original intended behaviour.
llvm-svn: 209184
|
|
|
|
| |
llvm-svn: 209175
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The -no-ns-alloc-error migration option now causes the diagnostic to be ignored
completely. If this isn't desired, the error can be downgraded to a warning
using the usual -Wno-error=arcmt-ns-alloc.
Note that we can't use -verify right now on this test because
VerifyDiagnosticConsumer gets confused by multiple SourceManager instances,
which is presumably the reason it was XFAILed in the first place and why the
regression wasn't detected. We'll grep instead for now.
llvm-svn: 209172
|
|
|
|
|
|
| |
This is necessary to reduce staging times on parallel build systems.
llvm-svn: 209120
|
|
|
|
|
|
|
|
| |
messes up the PCH file.
rdar://16941811
llvm-svn: 209059
|
|
|
|
|
|
|
|
| |
rules: instead of requiring flexible array members to be POD, require them to
be trivially-destructible. This seems to be the only constraint that actually
matters here (and even then, it's questionable whether this matters).
llvm-svn: 198983
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
'deprecated'.
Fixes <rdar://problem/15584219> and <rdar://problem/12241361>.
This change looks large, but all it does is reuse and consolidate
the delayed diagnostic logic for deprecation warnings with unavailability
warnings. By doing so, it showed various inconsistencies between the
diagnostics, which were close, but not consistent. It also revealed
some missing "note:"'s in the deprecated diagnostics that were showing
up in the unavailable diagnostics, etc.
This change also changes the wording of the core deprecation diagnostics.
Instead of saying "function has been explicitly marked deprecated"
we now saw "'X' has been been explicitly marked deprecated". It
turns out providing a bit more context is useful, and often we
got the actual term wrong or it was not very precise
(e.g., "function" instead of "destructor"). By just saying the name
of the thing that is deprecated/deleted/unavailable we define
this issue away. This diagnostic can likely be further wordsmithed
to be shorter.
llvm-svn: 197627
|
|
|
|
|
|
| |
conformance is inferred. // rdar://15515206
llvm-svn: 197448
|
|
|
|
| |
llvm-svn: 197116
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with the edit entries, instead of applying the changes"
(And also revert the follow-up r197086.)
This seems to have broken Linux builds, which were failing with the following:
/build/buildbot/osu8/clang-x86_64-linux-selfhost-rel/llvm.obj/Release+Asserts/lib/libclang.so:
error: undefined reference to
'clang::ento::objc_retain::CallEffects::getEffect(clang::ObjCMethodDecl const*)'
/build/buildbot/osu8/clang-x86_64-linux-selfhost-rel/llvm.obj/Release+Asserts/lib/libclang.so:
error: undefined reference to
'clang::ento::objc_retain::CallEffects::getEffect(clang::FunctionDecl const*)'
collect2: error: ld returned 1 exit status
llvm-svn: 197111
|
|
|
|
|
|
|
| |
Objective-C object conforming to 'NSCopying' protocol, infer
a 'copy' property, instead of 'strong'. // rdar://15525937
llvm-svn: 197102
|
|
|
|
|
|
|
|
|
|
|
| |
entries, instead of applying the changes
to a temp file directly.
This allows to combine the edits when they can be different based on whether you saw
the implementation or not, e.g. with the designated initializer migration.
llvm-svn: 197076
|
|
|
|
|
|
|
|
|
|
| |
the ObjC implementation declarations, just don't change implementations for
classes that are not in the whitelisted headers.
For example, if we change a method to return 'instancetype' we should also
update the method definition in the implementation.
llvm-svn: 197075
|
|
|
|
|
|
|
|
| |
initializers.
rdar://15509284
llvm-svn: 196943
|
|
|
|
|
|
|
|
| |
There's no evidence that a 'DISABLE' directive ever existed.
Let's see if anything breaks..
llvm-svn: 196733
|
|
|
|
| |
llvm-svn: 196510
|
|
|
|
|
|
|
| |
inferred as 'assign', not 'assign' and 'strong'.
// rdar://15509831
llvm-svn: 195368
|
|
|
|
|
|
|
| |
retain attribute for inferred properties.
// rdar://15519923
llvm-svn: 195292
|
|
|
|
|
|
| |
'Deprecated' name suffix.
llvm-svn: 195137
|
|
|
|
|
|
| |
attributes on 'readonly' properties. // rdar://15460787
llvm-svn: 194718
|
|
|
|
|
|
|
| |
This options accepts a path to a directory, collects the filenames of the files
it contains, and the migrator will only modify files with the same filename.
llvm-svn: 194710
|
|
|
|
|
|
|
|
| |
on inferred property attribute under
-objcmt-ns-nonatomic-iosonly option.
// rdar://15442742
llvm-svn: 194532
|
|
|
|
|
|
|
|
| |
"atomic" or "nonatomic" for properties is
NS_NONATOMIC_IOSONLY. Use it if available.
// rdar://15442742
llvm-svn: 194503
|
|
|
|
|
|
| |
method implementations. // rdar://15438505
llvm-svn: 194402
|
|
|
|
|
|
|
|
| |
NS_RETURNS_INNER_POINTER ends up unintentionally
on the @property under -objcmt-migrate-all
// rdar://15396636
llvm-svn: 194233
|
|
|
|
|
|
|
|
| |
NS_RETURNS_INNER_POINTER under -objcmt-returns-innerpointer-property
flag (off by default), as older compilers do not support such annotations.
// rdar://15396636
llvm-svn: 194100
|
|
|
|
|
|
|
|
|
|
| |
do not remove the setter if its availability differs
from availability of the getter (which is now turned into
a property). Otherwise, synthesized setter will
inherit availability of the property (which is incorrect).
// rdar://15300059
llvm-svn: 193837
|
|
|
|
|
|
|
| |
deprecated categories, fixes a typo reported by
Jordan.
llvm-svn: 193759
|
|
|
|
|
|
|
| |
a category with NSxxxDeprecated name with deprecated
annotation. // rdar://15337661
llvm-svn: 193726
|
|
|
|
|
|
|
|
| |
macros, prefer the typedef immediately following the
enum declaration to the one preceeding it.
// rdar://15200915
llvm-svn: 192927
|
|
|
|
|
|
|
| |
when inferring property from setter/getter
methods. // rdar://15200949
llvm-svn: 192853
|
|
|
|
|
|
|
| |
inferred properties when type is scalar and
assumed to be 'assign. // rdar://15231241
llvm-svn: 192841
|
|
|
|
|
|
| |
Don't add it to inferred property. // rdar://14988132
llvm-svn: 192834
|
|
|
|
|
|
| |
properties. // rdar://15231860
llvm-svn: 192826
|
|
|
|
|
|
|
|
| |
migration to NS_ENUM/NS_OPTIONS macros; when
typedef'ed to NSInteger/NSUInteger preceeds well
before of the enum declaration. // rdar://15201056
llvm-svn: 192645
|
|
|
|
|
|
|
| |
NS_ENUM/NS_OPTIONS macros when typedef declaration
precedes enum declaration. // rdar://15200915
llvm-svn: 192506
|
|
|
|
|
|
|
| |
migration, the typedef has annotations.
// rdar://15200602
llvm-svn: 192468
|
|
|
|
|
|
|
| |
don't leave a blank line behind replacing the typedef
decl. // rdar://15200949
llvm-svn: 192407
|
|
|
|
|
|
|
| |
methods, infer their self's type as their result type.
// rdar://15145218
llvm-svn: 192377
|
|
|
|
|
|
|
| |
and use it to infer all properties as 'atomic'.
// rdar://14988132
llvm-svn: 192317
|
|
|
|
|
|
|
| |
suppression of strong lifetime qualifiers when
inferring property. // rdar://15082812
llvm-svn: 192305
|
|
|
|
|
|
|
| |
properties of function pointer type.
// rdar://15082812
llvm-svn: 192237
|
|
|
|
|
|
|
|
|
| |
properties of block pointer types. Also, remove
strong lifetime attribute from property type
in this migration. This is wip.
// rdar://15082818
llvm-svn: 192226
|
|
|
|
|
|
|
|
| |
'default' methods in Foundation does not
infer 'instancetype' for methods' result type.
// rdar://15145218
llvm-svn: 192129
|
|
|
|
|
|
|
| |
enable them for distinct feature migration.
// rdar://15003157
llvm-svn: 191863
|
|
|
|
|
|
|
| |
migrations under their own option.
wip and // rdar://15003157
llvm-svn: 191855
|
|
|
|
|
|
|
| |
if property name is a valid identifier in the underlying
language. // rdar://15044184
llvm-svn: 191584
|
|
|
|
|
|
|
|
|
| |
disable-objc-default-synthesize-properties.
We want the modern behavior most of the time, so inverting the option simplifies
the driver and the tests.
llvm-svn: 191551
|
|
|
|
|
|
| |
on class methods, as it makes no sense. // rdar://15069200
llvm-svn: 191468
|