summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate
Commit message (Collapse)AuthorAgeFilesLines
...
* ObjectiveC migrator. Introduce a new objcmt-atomic-property optionFariborz Jahanian2013-10-091-4/+10
| | | | | | | and use it to infer all properties as 'atomic'. // rdar://14988132 llvm-svn: 192317
* ObjectiveC migrator. Introduce a new print policy forFariborz Jahanian2013-10-091-0/+1
| | | | | | | suppression of strong lifetime qualifiers when inferring property. // rdar://15082812 llvm-svn: 192305
* ObjectiveC migrator: Add support for inferring Fariborz Jahanian2013-10-081-2/+5
| | | | | | | properties of function pointer type. // rdar://15082812 llvm-svn: 192237
* ObjectiveC migration. Add support for inferringFariborz Jahanian2013-10-081-14/+52
| | | | | | | | | properties of block pointer types. Also, remove strong lifetime attribute from property type in this migration. This is wip. // rdar://15082818 llvm-svn: 192226
* ObjectiveC migrator: Add individual options andFariborz Jahanian2013-10-021-16/+29
| | | | | | | enable them for distinct feature migration. // rdar://15003157 llvm-svn: 191863
* ObjectiveC migrator. Starting distiguising differentFariborz Jahanian2013-10-021-2/+4
| | | | | | | migrations under their own option. wip and // rdar://15003157 llvm-svn: 191855
* Objective-C migrator. Simplify migrator option Fariborz Jahanian2013-10-021-32/+12
| | | | | | | processing in preparation for adding several more options. // rdar://15003157 llvm-svn: 191842
* ObjectiveC migrator: When doing migration, migrator must suggestFariborz Jahanian2013-10-011-1/+31
| | | | | | | | migration of headers which have become system headers by user having put the .system_framework in the sdk directory. // rdar://15066802 llvm-svn: 191796
* ObjectiveC migrator. Infer property from getters onlyFariborz Jahanian2013-09-271-1/+11
| | | | | | | if property name is a valid identifier in the underlying language. // rdar://15044184 llvm-svn: 191584
* ObjectiveC migrator: Donlt annotate NS_RETURNS_INNER_POINTERFariborz Jahanian2013-09-261-0/+1
| | | | | | on class methods, as it makes no sense. // rdar://15069200 llvm-svn: 191468
* ObjectiveC migrator: function pointer is not anFariborz Jahanian2013-09-261-1/+2
| | | | | | | | inner pointer for annotation to objc_returns_inner_pointer purposes. // rdar://15044991 llvm-svn: 191465
* ObjectiveC migrator. Don't suggest @property forFariborz Jahanian2013-09-251-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-241-1/+1
| | | | | | keyword and the rest on suggested property. // rdar://15069044 llvm-svn: 191335
* ObjectiveC migrator: iDOn't mangle names when Fariborz Jahanian2013-09-241-3/+23
| | | | | | | NS_RETURNS_INNER_POINTER annotation is suggested on a property. // rdar://15044991 llvm-svn: 191332
* Remove extra space.Fariborz Jahanian2013-09-231-1/+1
| | | | llvm-svn: 191246
* ObjectiveC migrator. When migrating to property declarationFariborz Jahanian2013-09-231-1/+3
| | | | | | | 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-231-3/+7
| | | | | | | | 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-181-5/+4
| | | | | | | | '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-181-6/+31
| | | | | | | of methods annotated with attributes. // rdar://14987909 llvm-svn: 190947
* ObjectiveC migrator: placing another check forFariborz Jahanian2013-09-181-0/+3
| | | | | | | 'deprecated' container before doing the 'instancetype' inference. llvm-svn: 190943
* ObjectiveC migrator. infer NS_OPTIONS correctly in theFariborz Jahanian2013-09-171-1/+1
| | | | | | presense of parenthesized enumerator initializers. llvm-svn: 190901
* ObjectiveC migrator: Don't infer property fromFariborz Jahanian2013-09-171-0/+2
| | | | | | 'deprected' setters either. // rdar://14989365 llvm-svn: 190894
* ObjectiveC migrator. Ignore migrating 'deprecated'Fariborz Jahanian2013-09-171-6/+15
| | | | | | entities. // rdar://14989365 llvm-svn: 190890
* ObjectiveC migrator: Don't infer a property from isXXX method Fariborz Jahanian2013-09-171-2/+6
| | | | | | 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-171-19/+0
| | | | | | | | possible currently. rdar://14461559 llvm-svn: 190880
* ObjectiveC migrator. Infer property in categoriesFariborz Jahanian2013-09-171-6/+8
| | | | | | | declared as getter with or without setter method. // rdar://15010020 llvm-svn: 190878
* Clean up some Triple usage in clang.Cameron Esfahani2013-09-142-2/+2
| | | | llvm-svn: 190737
* ObjectiveC migration. NS_RETURNS_NOT_RETAINED is the default forFariborz Jahanian2013-09-111-6/+0
| | | | | | | unknown methods which return Cocoa objects. No need to annotate such methods. llvm-svn: 190555
* ObjectiveC migrator. Modify inferred property nameFariborz Jahanian2013-09-111-1/+5
| | | | | | | | 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-111-10/+16
| | | | | | start with "get" are inferreed as a readonly properties. llvm-svn: 190532
* ObjectiveC migrator: rename inferred isXXX property,Fariborz Jahanian2013-09-101-1/+1
| | | | | | with a suitable 'getter' attribute. llvm-svn: 190420
* ObjectiveC migrator. Do not infer NS_RETURNS_INNER_POINTERFariborz Jahanian2013-09-091-0/+14
| | | | | | | 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-061-60/+75
| | | | | | | | 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-8/+32
| | | | | | | | | 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-14/+44
| | | | | | to Method/functions returning ObjC objects. wip. llvm-svn: 190005
* ObjectiveC migrator. Refactor last patch on Fariborz Jahanian2013-09-041-17/+8
| | | | | | annotations. (was r189892). llvm-svn: 189956
* ObjectiveC migrator: Cannot use bridging annotations forFariborz Jahanian2013-09-041-31/+30
| | | | | | | 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-301-3/+29
| | | | | | | | 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-301-9/+13
| | | | | | | | | | 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-301-4/+15
| | | | | | should infer migration to NS_OPTIONS. llvm-svn: 189628
* ObjectiveC migrator: remove dead code.Fariborz Jahanian2013-08-291-5/+0
| | | | llvm-svn: 189592
* ObjectiveC migrator. This patch infers readonly properties for no-parameter Fariborz Jahanian2013-08-281-10/+32
| | | | | | | 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-281-2/+11
| | | | | | | | 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-281-6/+4
| | | | | | | (e.g., all -init* methods), no need to suggest "instancetype" because it is redundant. llvm-svn: 189514
* ObjectiveC migrator: minor refactoring of my lastFariborz Jahanian2013-08-271-10/+10
| | | | | | cf annotation patch. llvm-svn: 189420
* ObjectiveC migrator: Do not add explicit cf annotation forFariborz Jahanian2013-08-271-93/+151
| | | | | | | | 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
* ObjectiveC migrator: builtin ObjectiveC types are notFariborz Jahanian2013-08-221-1/+1
| | | | | | audited types. llvm-svn: 189072
* ObjectiveC migrator: some refactoring to reduceFariborz Jahanian2013-08-221-38/+15
| | | | | | code size. llvm-svn: 189070
* ObjectiveC migrator: Provide ARC annotations forFariborz Jahanian2013-08-221-23/+129
| | | | | | CF methods too. llvm-svn: 189041
* ObjectibeC migrator. Annotate cf_consumed arguments,Fariborz Jahanian2013-08-211-1/+11
| | | | | | as reported by static analyer API with CF_CONSUMED. llvm-svn: 188922
OpenPOWER on IntegriCloud