summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/method-attributes.m
Commit message (Collapse)AuthorAgeFilesLines
* Implement the 'optnone' attribute, which suppresses most optimizationsPaul Robinson2014-03-311-0/+1
| | | | | | on a function. llvm-svn: 205255
* ObjectiveC. Sema test for property, methods Fariborz Jahanian2013-12-191-0/+9
| | | | | | 'section' attribute. // rdar://15450637 llvm-svn: 197704
* ObjectiveC. Remove warning diagnostic which checksFariborz Jahanian2013-11-231-8/+8
| | | | | | | | | | | | | | attribute on method declaration and implementation match. This makes no sense. Most annotations are meant for declarations only and one is for implementation. This has been constant source of regresions and hackery to get around special cases. I am removing this check. Such checks must be done on a case by case basis and when it makes sense. For example, it makes sense for availability/deprecated and I will file a radar for that. // rdar://15531984 llvm-svn: 195524
* Giving this test a triple since it uses a calling convention attribute.Aaron Ballman2013-11-191-1/+1
| | | | llvm-svn: 195099
* Improving calling convention test coverage by adding tests for things not ↵Aaron Ballman2013-11-191-0/+5
| | | | | | currently handled. Specifically: the diagnostics in SemaDeclAttr.cpp, and ensuring that calling convention attributes are applied to ObjC method declarations. No functional changes. llvm-svn: 195098
* objective-C: Do not warn if align attribute on methodFariborz Jahanian2012-08-241-0/+29
| | | | | | | declaration is not provided. It is only necessary on the method implementation. // rdar://11593375 llvm-svn: 162628
* 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
* After numerous requests, have Objective-C 'method declared here' notes ↵Ted Kremenek2012-02-271-3/+3
| | | | | | mention the actual method. This looks better within an IDE, where text isn't always regurgitated in the presentation of a warning. Fixes radar 10914035. llvm-svn: 151579
* objc: put out more coherent warning when method definitionFariborz Jahanian2011-12-061-4/+26
| | | | | | attributes don't match its declaration. // rdar://10529259. llvm-svn: 145872
* Fixes a minor hick up to my last patch.Fariborz Jahanian2011-10-221-1/+1
| | | | llvm-svn: 142711
* objc: private methods can have their attributes, no diagnostic is required.Fariborz Jahanian2011-10-221-1/+4
| | | | | | | None private methods if their implementation have attribute, they must exactly match those in their declarations. // rdar://10271563 llvm-svn: 142709
* 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
* Changed wording of warning when attribute is onFariborz Jahanian2009-05-131-2/+2
| | | | | | method definition. llvm-svn: 71615
* Method attributes may only be specified on methodFariborz Jahanian2009-05-121-0/+22
| | | | | | declarations. llvm-svn: 71597
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Improve attribute parsing & tests.Daniel Dunbar2008-10-191-1/+3
| | | | | | | | | | | | - Support noreturn on function-typed variables. - Extend isFunctionOrMethod to return true for K&R functions and provide hasFunctionProto to check if a decl has information about its arguments. This code needs some serious cleaning, but works. - Add/improve test cases for noreturn and unused. llvm-svn: 57778
* Sema support for format and noreturn attributes on Objective-C methods.Daniel Dunbar2008-09-261-0/+8
llvm-svn: 56640
OpenPOWER on IntegriCloud