summaryrefslogtreecommitdiffstats
path: root/clang/test/ARCMT
Commit message (Collapse)AuthorAgeFilesLines
...
* ObjectiveC migrator: function pointer is not anFariborz Jahanian2013-09-261-1/+1
| | | | | | | | inner pointer for annotation to objc_returns_inner_pointer purposes. // rdar://15044991 llvm-svn: 191465
* ObjectiveC migrator. Don't suggest @property forFariborz Jahanian2013-09-252-0/+6
| | | | | | | methods which look like getters but belong to known family of methods. // rdar://15044058 llvm-svn: 191347
* ObjectiveC migrator: provide space between the property Fariborz Jahanian2013-09-242-48/+48
| | | | | | keyword and the rest on suggested property. // rdar://15069044 llvm-svn: 191335
* ObjectiveC migrator: Another test for my last patch.Fariborz Jahanian2013-09-242-0/+6
| | | | | | // rdar://15044991 llvm-svn: 191334
* ObjectiveC migrator: iDOn't mangle names when Fariborz Jahanian2013-09-242-0/+36
| | | | | | | NS_RETURNS_INNER_POINTER annotation is suggested on a property. // rdar://15044991 llvm-svn: 191332
* ObjectiveC migrator. When migrating to property declarationFariborz Jahanian2013-09-231-12/+12
| | | | | | | use Cocoa's naming convention for properties of ObjC object type. // rdar://15045005 llvm-svn: 191240
* ObjectiveC migrator: Infer NS_OPTIONS when if there is atFariborz Jahanian2013-09-232-0/+116
| | | | | | | | least one hex enumerator, all others are also hex enumerator (0 enumerator is excepted). // rdar://15044304 llvm-svn: 191222
* ObjectiveC migrator: For consistency, also inferFariborz Jahanian2013-09-182-23/+23
| | | | | | | | 'instancetype' for known family of methods with related result type; such as 'init' methods. // rdar://14987948 llvm-svn: 190956
* ObjectiveC migrator: Infer property in the presenseFariborz Jahanian2013-09-182-2/+66
| | | | | | | of methods annotated with attributes. // rdar://14987909 llvm-svn: 190947
* ObjectiveC migrator. infer NS_OPTIONS correctly in theFariborz Jahanian2013-09-172-0/+40
| | | | | | presense of parenthesized enumerator initializers. llvm-svn: 190901
* ObjectiveC migrator. Ignore migrating 'deprecated'Fariborz Jahanian2013-09-177-10/+78
| | | | | | entities. // rdar://14989365 llvm-svn: 190890
* ObjectiveC migrator: Don't infer a property from isXXX method Fariborz Jahanian2013-09-171-2/+2
| | | | | | of retainable object (readonly or otherwise). llvm-svn: 190881
* [arcmt] Don't try to handle files that are already ARC'ified, this is not ↵Argyrios Kyrtzidis2013-09-177-39/+25
| | | | | | | | possible currently. rdar://14461559 llvm-svn: 190880
* ObjectiveC migrator. Infer property in categoriesFariborz Jahanian2013-09-172-0/+86
| | | | | | | declared as getter with or without setter method. // rdar://15010020 llvm-svn: 190878
* ObjectiveC migration. NS_RETURNS_NOT_RETAINED is the default forFariborz Jahanian2013-09-111-19/+19
| | | | | | | unknown methods which return Cocoa objects. No need to annotate such methods. llvm-svn: 190555
* ObjectiveC migrator. Modify inferred property nameFariborz Jahanian2013-09-112-0/+12
| | | | | | | | 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
* ObjectiveC migrator. methods which look like a getter andFariborz Jahanian2013-09-112-0/+16
| | | | | | start with "get" are inferreed as a readonly properties. llvm-svn: 190532
* ObjectiveC migrator: rename inferred isXXX property,Fariborz Jahanian2013-09-102-1/+3
| | | | | | with a suitable 'getter' attribute. llvm-svn: 190420
* ObjectiveC migrator. Do not infer NS_RETURNS_INNER_POINTERFariborz Jahanian2013-09-092-0/+20
| | | | | | | annotation on methods which return typedef of pointer to an incomplete struct type. llvm-svn: 190372
* ObjectiveC migrator: When inferring a property,Fariborz Jahanian2013-09-062-0/+14
| | | | | | | | preserve getter's attribute. Also, do not attach an inferred NS_RETURNS_INNER_POINTER to the inferred property (it is illegal). llvm-svn: 190223
* ObjectiveC migrator: tighten the rules for whenFariborz Jahanian2013-09-051-1/+1
| | | | | | | | | 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
* ObjectiveC migrator: start introducing NS_XXX annotationsFariborz Jahanian2013-09-041-20/+20
| | | | | | to Method/functions returning ObjC objects. wip. llvm-svn: 190005
* ObjectiveC migrator: Cannot use bridging annotations forFariborz Jahanian2013-09-042-29/+5
| | | | | | | ObjectiveC methods. Apply specific annotations for them instead as determined by the static analyzer. llvm-svn: 189892
* ObjectiveC migrator: If we find a method that returns a C pointer Fariborz Jahanian2013-08-302-0/+198
| | | | | | | | 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
* ObjectiveC migrator: infer NS_ENUM even when userFariborz Jahanian2013-08-302-1/+37
| | | | | | | | | | 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
* ObjectiveC migrator: User of hexadecimal enumeratorFariborz Jahanian2013-08-302-4/+34
| | | | | | should infer migration to NS_OPTIONS. llvm-svn: 189628
* ObjectiveC migrator. This patch infers readonly properties for no-parameter Fariborz Jahanian2013-08-282-4/+14
| | | | | | | 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
* ObjectiveC migrator: In suggesting 'instancetype' use clang'sFariborz Jahanian2013-08-283-20/+20
| | | | | | | | hasRelatedResultType() as it knows of methods which have related result type by default. Such methods do not need a redundant 'instancetype'. llvm-svn: 189520
* For methods where clang automatically infers instancetype from the selector Fariborz Jahanian2013-08-283-48/+48
| | | | | | | (e.g., all -init* methods), no need to suggest "instancetype" because it is redundant. llvm-svn: 189514
* ObjectiveC migrator: Do not add explicit cf annotation forFariborz Jahanian2013-08-271-54/+18
| | | | | | | | 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
* Make the information about disabled ARCMT/Rewriter/StaticAnalyzer availableRoman Divacky2013-08-271-0/+2
| | | | | | | to lit and use this info to disable Analysis/FixIt/Rewriter/Analysis tests when those are not compiled into clang. llvm-svn: 189395
* ObjectiveC migrator: builtin ObjectiveC types are notFariborz Jahanian2013-08-222-0/+14
| | | | | | audited types. llvm-svn: 189072
* ObjectiveC migrator: Provide ARC annotations forFariborz Jahanian2013-08-221-7/+43
| | | | | | CF methods too. llvm-svn: 189041
* ObjectibeC migrator. Annotate cf_consumed arguments,Fariborz Jahanian2013-08-211-6/+6
| | | | | | as reported by static analyer API with CF_CONSUMED. llvm-svn: 188922
* ObjectiveC migrator: until we have beter understanding ofFariborz Jahanian2013-08-211-14/+14
| | | | | | | setter/getter implementations, migrate them to nonatomic properties. llvm-svn: 188914
* ObjectiveC migrator: make sure audited pragams areFariborz Jahanian2013-08-202-8/+2
| | | | | | dumped for last declarations in the current TU. wip. llvm-svn: 188838
* ObjectiveC migrator: More tweaking of heuristicsFariborz Jahanian2013-08-201-12/+0
| | | | | | | for an audited cf function to not include those which are annotated by user. llvm-svn: 188823
* ObjectiveC migrator: More tweaking of heuristicsFariborz Jahanian2013-08-202-1/+121
| | | | | | | for an audited cf function and addition of a test case. llvm-svn: 188816
* ObjetiveC migrator: fix the test in my last patchFariborz Jahanian2013-08-152-9/+9
| | | | | | | to define real CF_RETURNS_RETAINED/CF_NO_RETURNS_RETAINED pairs. llvm-svn: 188497
* ObjectiveC migrator. Start annotating CF functionsFariborz Jahanian2013-08-152-0/+4044
| | | | | | | with CF_RETURNS_RETAINED/CF_RETURNS_NOT_RETAINED as appropriate. llvm-svn: 188493
* Add another test to my last patch (NS_OPTION vs. NS_ENUM)Fariborz Jahanian2013-08-152-0/+14
| | | | | | ObjectiveC migration. llvm-svn: 188480
* ObjectiveC migrator: In deciding NS_OPTION overFariborz Jahanian2013-08-152-0/+12
| | | | | | | NS_ENUM, at least one power of 2 enumerator must be greater than two. llvm-svn: 188470
* ObjectiveC migrator: Fixes a crash and makes coupleFariborz Jahanian2013-08-132-0/+28
| | | | | | of harmless changes. llvm-svn: 188303
* [arcmt] When handling unbridged casts, handle the body of BlockDecl ↵Argyrios Kyrtzidis2013-08-091-1/+13
| | | | | | | | | | separately because ParentMap does not record Stmt parent nodes inside a BlockDecl. Fixes rdar://14686900 llvm-svn: 188101
* ObjectiveC migrator: tighten rule about when toFariborz Jahanian2013-08-082-6/+6
| | | | | | | migrate to @property with getter name starting with 'is'. llvm-svn: 188013
* ObjectiveC migration: Handle another special case ofFariborz Jahanian2013-08-082-0/+20
| | | | | | | setter/getter methods which can be migrated to a @property. llvm-svn: 188005
* ObjectiveC migration: tweak setting of lifetime attributeFariborz Jahanian2013-08-062-5/+51
| | | | | | | | | 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
* ObjectiveC migrator: Add another family of factory Fariborz Jahanian2013-08-022-0/+22
| | | | | | methods which can be migrated to instancetype. llvm-svn: 187672
* ObjectiveC migrator: Fixes public buildbot failures,Fariborz Jahanian2013-08-023-1/+153
| | | | | | in my previous patch which was reverted in r187657 llvm-svn: 187661
* revert patch I added in r187655. It still breaks publicFariborz Jahanian2013-08-023-153/+1
| | | | | | buildbot. llvm-svn: 187657
OpenPOWER on IntegriCloud