summaryrefslogtreecommitdiffstats
path: root/clang/test/ARCMT
Commit message (Collapse)AuthorAgeFilesLines
...
* [objcmt] Make sure we don't edit the return type to add 'instancetype' if ↵Argyrios Kyrtzidis2014-05-211-0/+10
| | | | | | | | the return type is already that. rdar://16961577 llvm-svn: 209264
* ARCMT/GC-check-warn-nsalloc.m: don't provide a diag groupAlp Toker2014-05-191-3/+2
| | | | | | | This diagnostic is now controlled solely by -no-ns-alloc-error thus matching the original intended behaviour. llvm-svn: 209184
* Improve test verification from r209172Alp Toker2014-05-191-2/+2
| | | | llvm-svn: 209175
* Get ARCMT/GC-check-warn-nsalloc.m workingAlp Toker2014-05-191-4/+5
| | | | | | | | | | | | | 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
* Make the ARCMT tests self-contained.Manuel Klimek2014-05-1910-2/+351
| | | | | | This is necessary to reduce staging times on parallel build systems. llvm-svn: 209120
* [objcmt] Don't wrap a PCH generation action with a ObjCMigrateAction one, it ↵Argyrios Kyrtzidis2014-05-171-0/+12
| | | | | | | | messes up the PCH file. rdar://16941811 llvm-svn: 209059
* Fix "regression" caused by updating our notion of POD to better match the C++11Richard Smith2014-01-111-1/+1
| | | | | | | | 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
* Implemented delayed processing of 'unavailable' checking, just like with ↵Ted Kremenek2013-12-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | '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
* ObjectiveC migrator. Fixes a bug when protocolFariborz Jahanian2013-12-172-0/+32
| | | | | | conformance is inferred. // rdar://15515206 llvm-svn: 197448
* Re-apply r197076 and r197086; the build was fixed by chapuni in r197114.Hans Wennborg2013-12-126-0/+60
| | | | llvm-svn: 197116
* Revert r197076: "[objcmt] When emitting a remap file, use a json formatHans Wennborg2013-12-126-60/+0
| | | | | | | | | | | | | | | | | | 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 migrator: when inferring 'readonly' property of anFariborz Jahanian2013-12-123-3/+3
| | | | | | | Objective-C object conforming to 'NSCopying' protocol, infer a 'copy' property, instead of 'strong'. // rdar://15525937 llvm-svn: 197102
* [objcmt] When emitting a remap file, use a json format with the edit ↵Argyrios Kyrtzidis2013-12-116-0/+60
| | | | | | | | | | | 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
* [objcmt] When whitelisting the headers we want to modify, allow changing theArgyrios Kyrtzidis2013-12-115-2/+40
| | | | | | | | | | 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
* [objcmt] Add a modernization option to infer and suggest designated ↵Argyrios Kyrtzidis2013-12-102-0/+88
| | | | | | | | initializers. rdar://15509284 llvm-svn: 196943
* Remove all DISABLE lines from testsAlp Toker2013-12-0841-41/+0
| | | | | | | | There's no evidence that a 'DISABLE' directive ever existed. Let's see if anything breaks.. llvm-svn: 196733
* Fix a tranche of comment, test and doc typosAlp Toker2013-12-052-2/+2
| | | | llvm-svn: 196510
* ObjectiveC migrator. delegate property must be Fariborz Jahanian2013-11-212-0/+6
| | | | | | | inferred as 'assign', not 'assign' and 'strong'. // rdar://15509831 llvm-svn: 195368
* ObjectiveC migrator. use strong instead of Fariborz Jahanian2013-11-214-71/+71
| | | | | | | retain attribute for inferred properties. // rdar://15519923 llvm-svn: 195292
* ObjectiveC migrator. Do not migrate categories withFariborz Jahanian2013-11-193-100/+4
| | | | | | 'Deprecated' name suffix. llvm-svn: 195137
* ObjectiveC migrator: This patch sets access propertyFariborz Jahanian2013-11-143-15/+15
| | | | | | attributes on 'readonly' properties. // rdar://15460787 llvm-svn: 194718
* [objcmt] Introduce "objcmt-white-list-dir-path=" option.Argyrios Kyrtzidis2013-11-146-0/+31
| | | | | | | 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
* ObjectiveC migrator. Place use of NS_NONATOMIC_IOSONLYFariborz Jahanian2013-11-132-2/+2
| | | | | | | | on inferred property attribute under -objcmt-ns-nonatomic-iosonly option. // rdar://15442742 llvm-svn: 194532
* ObjectiveC migrator. Another alternative toFariborz Jahanian2013-11-122-0/+445
| | | | | | | | "atomic" or "nonatomic" for properties is NS_NONATOMIC_IOSONLY. Use it if available. // rdar://15442742 llvm-svn: 194503
* ObjectiveC migrator. More testing of instancetype migration inFariborz Jahanian2013-11-112-0/+56
| | | | | | method implementations. // rdar://15438505 llvm-svn: 194402
* ObjectiveC migrator. Fixes an obscure bug whereFariborz Jahanian2013-11-082-0/+269
| | | | | | | | NS_RETURNS_INNER_POINTER ends up unintentionally on the @property under -objcmt-migrate-all // rdar://15396636 llvm-svn: 194233
* ObjectiveC migrator. Please annotation of properties with Fariborz Jahanian2013-11-052-2/+2
| | | | | | | | 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
* ObjectiveC migrator. When inferring readwrite property,Fariborz Jahanian2013-11-014-10/+99
| | | | | | | | | | 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
* ObjectiveC migrator. Change naming hueristic forFariborz Jahanian2013-10-312-2/+16
| | | | | | | deprecated categories, fixes a typo reported by Jordan. llvm-svn: 193759
* ObjectiveC migrator: annotate all protocols/methods inFariborz Jahanian2013-10-312-0/+82
| | | | | | | a category with NSxxxDeprecated name with deprecated annotation. // rdar://15337661 llvm-svn: 193726
* ObjectiveC migrator. In infering NS_ENUM/NS_OPTIONSFariborz Jahanian2013-10-172-26/+69
| | | | | | | | macros, prefer the typedef immediately following the enum declaration to the one preceeding it. // rdar://15200915 llvm-svn: 192927
* ObjectiveC migrator. Remove blank linesFariborz Jahanian2013-10-163-56/+0
| | | | | | | when inferring property from setter/getter methods. // rdar://15200949 llvm-svn: 192853
* ObjectiveC migrator. Don't add 'assign' forFariborz Jahanian2013-10-162-0/+16
| | | | | | | inferred properties when type is scalar and assumed to be 'assign. // rdar://15231241 llvm-svn: 192841
* ObjectiveC migrator. 'atomic' is the default attribute.Fariborz Jahanian2013-10-161-51/+51
| | | | | | Don't add it to inferred property. // rdar://14988132 llvm-svn: 192834
* ObjectiveC migrator. Use 'assign' for 'delegate'Fariborz Jahanian2013-10-163-13/+13
| | | | | | properties. // rdar://15231860 llvm-svn: 192826
* ObjectiveC migrator: Support for more possibility ofFariborz Jahanian2013-10-152-1/+41
| | | | | | | | 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
* ObjectiveC migrator. also support migration toFariborz Jahanian2013-10-112-0/+68
| | | | | | | NS_ENUM/NS_OPTIONS macros when typedef declaration precedes enum declaration. // rdar://15200915 llvm-svn: 192506
* ObjectiveC migrator: fixes a bug when in NS_ENUM/NS_OPTIONSFariborz Jahanian2013-10-112-0/+21
| | | | | | | migration, the typedef has annotations. // rdar://15200602 llvm-svn: 192468
* ObjectiveC migrator. When migrating to NS_ENUM/NS_OPTIONS,Fariborz Jahanian2013-10-101-9/+0
| | | | | | | don't leave a blank line behind replacing the typedef decl. // rdar://15200949 llvm-svn: 192407
* ObjectiveC migrator: For 'default' and 'shared' family ofFariborz Jahanian2013-10-102-2/+6
| | | | | | | methods, infer their self's type as their result type. // rdar://15145218 llvm-svn: 192377
* ObjectiveC migrator. Introduce a new objcmt-atomic-property optionFariborz Jahanian2013-10-092-0/+458
| | | | | | | 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-2/+2
| | | | | | | suppression of strong lifetime qualifiers when inferring property. // rdar://15082812 llvm-svn: 192305
* ObjectiveC migrator: Add support for inferring Fariborz Jahanian2013-10-082-0/+6
| | | | | | | properties of function pointer type. // rdar://15082812 llvm-svn: 192237
* ObjectiveC migration. Add support for inferringFariborz Jahanian2013-10-082-4/+22
| | | | | | | | | 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: A typical implementation ofFariborz Jahanian2013-10-071-1/+1
| | | | | | | | 'default' methods in Foundation does not infer 'instancetype' for methods' result type. // rdar://15145218 llvm-svn: 192129
* ObjectiveC migrator: Add individual options andFariborz Jahanian2013-10-0212-12/+12
| | | | | | | enable them for distinct feature migration. // rdar://15003157 llvm-svn: 191863
* ObjectiveC migrator. Starting distiguising differentFariborz Jahanian2013-10-0214-14/+14
| | | | | | | migrations under their own option. wip and // rdar://15003157 llvm-svn: 191855
* ObjectiveC migrator. Infer property from getters onlyFariborz Jahanian2013-09-272-0/+8
| | | | | | | if property name is a valid identifier in the underlying language. // rdar://15044184 llvm-svn: 191584
* Replace -fobjc-default-synthesize-properties with ↵Rafael Espindola2013-09-2715-30/+30
| | | | | | | | | 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
* ObjectiveC migrator: Donlt annotate NS_RETURNS_INNER_POINTERFariborz Jahanian2013-09-262-0/+4
| | | | | | on class methods, as it makes no sense. // rdar://15069200 llvm-svn: 191468
OpenPOWER on IntegriCloud