| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
inner pointer for annotation to
objc_returns_inner_pointer purposes.
// rdar://15044991
llvm-svn: 191465
|
|
|
|
|
|
|
| |
methods which look like getters but belong to
known family of methods. // rdar://15044058
llvm-svn: 191347
|
|
|
|
|
|
| |
keyword and the rest on suggested property. // rdar://15069044
llvm-svn: 191335
|
|
|
|
|
|
| |
// rdar://15044991
llvm-svn: 191334
|
|
|
|
|
|
|
| |
NS_RETURNS_INNER_POINTER annotation is suggested on
a property. // rdar://15044991
llvm-svn: 191332
|
|
|
|
|
|
|
| |
use Cocoa's naming convention for properties of ObjC
object type. // rdar://15045005
llvm-svn: 191240
|
|
|
|
|
|
|
|
| |
least one hex enumerator, all others are also
hex enumerator (0 enumerator is excepted).
// rdar://15044304
llvm-svn: 191222
|
|
|
|
|
|
|
|
| |
'instancetype' for known family of methods
with related result type; such as 'init'
methods. // rdar://14987948
llvm-svn: 190956
|
|
|
|
|
|
|
| |
of methods annotated with attributes.
// rdar://14987909
llvm-svn: 190947
|
|
|
|
|
|
| |
presense of parenthesized enumerator initializers.
llvm-svn: 190901
|
|
|
|
|
|
| |
entities. // rdar://14989365
llvm-svn: 190890
|
|
|
|
|
|
| |
of retainable object (readonly or otherwise).
llvm-svn: 190881
|
|
|
|
|
|
|
|
| |
possible currently.
rdar://14461559
llvm-svn: 190880
|
|
|
|
|
|
|
| |
declared as getter with or without setter method.
// rdar://15010020
llvm-svn: 190878
|
|
|
|
|
|
|
| |
unknown methods which return Cocoa objects. No need to annotate
such methods.
llvm-svn: 190555
|
|
|
|
|
|
|
|
| |
such that it does not lower case the staring property
name if getter name (after "get" prefix) starts with
two upper case letters.
llvm-svn: 190539
|
|
|
|
|
|
| |
start with "get" are inferreed as a readonly properties.
llvm-svn: 190532
|
|
|
|
|
|
| |
with a suitable 'getter' attribute.
llvm-svn: 190420
|
|
|
|
|
|
|
| |
annotation on methods which return typedef of pointer to
an incomplete struct type.
llvm-svn: 190372
|
|
|
|
|
|
|
|
| |
preserve getter's attribute. Also, do not attach
an inferred NS_RETURNS_INNER_POINTER to the inferred
property (it is illegal).
llvm-svn: 190223
|
|
|
|
|
|
|
|
|
| |
inferring NS_RETURNS_RETAINED, etc., return annotations.
Do not infer if these annotations are implicit
from the naming convention. Also add inference for
NS_CONSUMES_SELF annotation.
llvm-svn: 190106
|
|
|
|
|
|
| |
to Method/functions returning ObjC objects. wip.
llvm-svn: 190005
|
|
|
|
|
|
|
| |
ObjectiveC methods. Apply specific annotations for them
instead as determined by the static analyzer.
llvm-svn: 189892
|
|
|
|
|
|
|
|
| |
of some sort (but not an object, block pointer or CF pointers),
and is not annotated with the objc_returns_inner_pointer attribute,
we should suggest NS_RETURNS_INNER_POINTER annotation for these methods.
llvm-svn: 189707
|
|
|
|
|
|
|
|
|
|
| |
specified NSUInteger as the followup typedef.
With this change, NS_OPTIONS is only inferred
based on looking up how enumerators are speficied
(if they her hexadecimal, power of 2, or have
bitwise constant expressions).
llvm-svn: 189682
|
|
|
|
|
|
| |
should infer migration to NS_OPTIONS.
llvm-svn: 189628
|
|
|
|
|
|
|
| |
instance methods returning non-void. This will be quite noisy. So, it is
placed under a new migrator flag -objcmt-migrate-readonly-property.
llvm-svn: 189537
|
|
|
|
|
|
|
|
| |
hasRelatedResultType() as it knows of methods which have
related result type by default. Such methods do not need
a redundant 'instancetype'.
llvm-svn: 189520
|
|
|
|
|
|
|
| |
(e.g., all -init* methods), no need to suggest "instancetype" because it
is redundant.
llvm-svn: 189514
|
|
|
|
|
|
|
|
| |
cf functions which are CF_IMPLICIT_BRIDGING_ENABLED.
Add cf annotation to those not CF_IMPLICIT_BRIDGING_ENABLED
to reduce bridge casts.
llvm-svn: 189409
|
|
|
|
|
|
|
| |
to lit and use this info to disable Analysis/FixIt/Rewriter/Analysis tests
when those are not compiled into clang.
llvm-svn: 189395
|
|
|
|
|
|
| |
audited types.
llvm-svn: 189072
|
|
|
|
|
|
| |
CF methods too.
llvm-svn: 189041
|
|
|
|
|
|
| |
as reported by static analyer API with CF_CONSUMED.
llvm-svn: 188922
|
|
|
|
|
|
|
| |
setter/getter implementations, migrate them to
nonatomic properties.
llvm-svn: 188914
|
|
|
|
|
|
| |
dumped for last declarations in the current TU. wip.
llvm-svn: 188838
|
|
|
|
|
|
|
| |
for an audited cf function to not include those
which are annotated by user.
llvm-svn: 188823
|
|
|
|
|
|
|
| |
for an audited cf function and addition of
a test case.
llvm-svn: 188816
|
|
|
|
|
|
|
| |
to define real CF_RETURNS_RETAINED/CF_NO_RETURNS_RETAINED
pairs.
llvm-svn: 188497
|
|
|
|
|
|
|
| |
with CF_RETURNS_RETAINED/CF_RETURNS_NOT_RETAINED as
appropriate.
llvm-svn: 188493
|
|
|
|
|
|
| |
ObjectiveC migration.
llvm-svn: 188480
|
|
|
|
|
|
|
| |
NS_ENUM, at least one power of 2 enumerator
must be greater than two.
llvm-svn: 188470
|
|
|
|
|
|
| |
of harmless changes.
llvm-svn: 188303
|
|
|
|
|
|
|
|
|
|
| |
separately because ParentMap does not record
Stmt parent nodes inside a BlockDecl.
Fixes rdar://14686900
llvm-svn: 188101
|
|
|
|
|
|
|
| |
migrate to @property with getter name starting with
'is'.
llvm-svn: 188013
|
|
|
|
|
|
|
| |
setter/getter methods which can be migrated to
a @property.
llvm-svn: 188005
|
|
|
|
|
|
|
|
|
| |
on @property migration. Don't set unsafe_unretained
on non-object properties. Set 'retain' on strong
properties. Makecertain properties with specific
names unsafe_unretained as well.
llvm-svn: 187810
|
|
|
|
|
|
| |
methods which can be migrated to instancetype.
llvm-svn: 187672
|
|
|
|
|
|
| |
in my previous patch which was reverted in r187657
llvm-svn: 187661
|
|
|
|
|
|
| |
buildbot.
llvm-svn: 187657
|