summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/unused.m
Commit message (Collapse)AuthorAgeFilesLines
* [Sema][ObjC] Disable -Wunused-parameter for ObjC methodsAkira Hatanaka2019-05-031-1/+1
| | | | | | | | | | The warning isn't very useful when the function is an ObjC method. rdar://problem/41561853 Differential Revision: https://reviews.llvm.org/D61147 llvm-svn: 359864
* [Objctive-C sema]. Do not do the unused-getter-return-valueFariborz Jahanian2015-02-161-3/+27
| | | | | | | warning when property getter is used in direct method call and return value of property is unused. rdar://19773512 llvm-svn: 229458
* Objective-C. Patch to warn if the result of calling a property getter Fariborz Jahanian2014-07-181-0/+23
| | | | | | | | is unused (this is match behavior when property-dot syntax is used to use same getter). rdar://17514245 Patch by Anders Carlsson with minor refactoring by me. llvm-svn: 213423
* Have attribute 'objc_precise_lifetime' suppress -Wunused.Ted Kremenek2014-01-091-0/+9
| | | | | | | | | | Fixes <rdar://problem/15596883> In ARC, __attribute__((objc_precise_lifetime)) guarantees that the object stored in it will survive to the end of the variable's formal lifetime. It is therefore useful even if it completely unused. llvm-svn: 198888
* objective-C: improve on warnings about misplacement of methodFariborz Jahanian2012-09-171-4/+8
| | | | | | argument names. // rdar://12263549 llvm-svn: 164077
* objective-C: issue warning when there is no whitespaceFariborz Jahanian2012-09-171-2/+3
| | | | | | | between objc method parameter name and colon. // rdar://12263549 llvm-svn: 164047
* refactoring + objective-C specific test for my last patch.Fariborz Jahanian2012-09-061-1/+15
| | | | | | // rdar://12233989 llvm-svn: 163338
* objective-C string literal has no side-effect,Fariborz Jahanian2012-08-041-0/+2
| | | | | | | resulting in issuance of unused static variable warning now. // rdar://10777111 llvm-svn: 161291
* Added a new attribute, objc_root_class, which informs the compiler when a ↵Patrick Beard2012-04-061-1/+1
| | | | | | | | | root class is intentionally declared. The warning this inhibits, -Wobjc-root-class, is opt-in for now. However, all clang unit tests that would trigger the warning have been updated to use -Wno-objc-root-class. <rdar://problem/7446698> llvm-svn: 154187
* wordsmith an objc warning, rdar://7900756Chris Lattner2010-04-261-1/+1
| | | | llvm-svn: 102388
* Match GCC's behavior and do not include '-Wunused-parameter' in '-Wunused'.Ted Kremenek2010-04-081-1/+1
| | | | llvm-svn: 100810
* Augment __has_feature to report that Clang supports adding attribute 'unused'Ted Kremenek2010-03-051-1/+9
| | | | | | to an Objective-C instance variable. llvm-svn: 97850
* Allow __attribute__((unused)) to be applied to ObjC ivars.Ted Kremenek2010-02-251-10/+11
| | | | llvm-svn: 97103
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Change tests to use clang -cc1...Fariborz Jahanian2009-12-141-1/+1
| | | | llvm-svn: 91297
* Don't #include <stdio.h> when tests don't need it, or use clang instead of ↵Daniel Dunbar2009-11-171-2/+3
| | | | | | clang-cc when they do. llvm-svn: 89070
* Improve the diagnostic emitted when an unused ObjC property getterChris Lattner2009-08-161-1/+1
| | | | | | | | | | | | is found. Instead of complaining about a generic "unused expr", emit: t.m:7:3: warning: property access result unused - getters should not have side effects While objc property getters *could* have side effects, according to the language best practices, they *shouldn't*. Hopefully the diagnostic now gets this across. llvm-svn: 79192
* Warn on use of property dot syntax when unused.Fariborz Jahanian2009-08-121-2/+1
| | | | llvm-svn: 78760
* merge two tests.Chris Lattner2009-08-111-5/+16
| | | | llvm-svn: 78705
* Fix rdar://7126285: don't warn on unused ObjC property accessChris Lattner2009-08-111-1/+16
| | | | | | that uses "dot syntax" since it might have a side effect. llvm-svn: 78704
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* remove objc prefixes from these tests.Chris Lattner2008-07-261-0/+18
llvm-svn: 54085
OpenPOWER on IntegriCloud