summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjCXX/arc-nsconsumed-errors.mm
Commit message (Collapse)AuthorAgeFilesLines
* Improve some infrastructure for extended parameter infos andJohn McCall2016-03-031-2/+2
| | | | | | | fix a bug with the instantiation of ns_consumed parameter attributes in ARC. llvm-svn: 262551
* Don't produce duplicate notes if we have deduction failure notes when resolvingRichard Smith2013-08-141-2/+1
| | | | | | the address of an overloaded function template. llvm-svn: 188334
* FIXME fix: improving diagnostics for template arguments deduction of class ↵Larisse Voufo2013-07-191-2/+4
| | | | | | | | templates and explicit specializations This patch essentially removes all the FIXMEs following calls to DeduceTemplateArguments() that want to keep track of deduction failure info. llvm-svn: 186730
* Revert "Use function overloading instead of template specialization for ↵Larisse Voufo2013-07-191-4/+2
| | | | | | | | diagnosis of bad template argument deductions." This reverts commit a730f548325756d050d4caaa28fcbffdae8dfe95. llvm-svn: 186729
* Use function overloading instead of template specialization for diagnosis of ↵Larisse Voufo2013-07-191-2/+4
| | | | | | bad template argument deductions. llvm-svn: 186727
* Sema: Preserve attributes on parameters in instantiated function templates.Jordan Rose2013-03-081-0/+32
| | | | | | | | | | | | | | | | | | This was causing correctness issues for ARC and the static analyzer when a function template has "consumed" Objective-C object parameters (i.e. parameters that will be released by the function before returning). The fix is threefold: (1) Actually copy over the attributes from old ParmVarDecls to new ones. (2) Have Sema::BuildFunctionType only work for building FunctionProtoTypes, which it was doing anyway. This allows us to pass an ExtProtoInfo instead of a plain ExtInfo and several flags. (3) Drop param attributes as part of StripImplicitInstantiation, which is used when an implicit instantiation is followed by an explicit one. <rdar://problem/12685622> llvm-svn: 176728
* Make -fobjc-nonfragile-abi the -cc1 default, since it's theJohn McCall2011-10-021-1/+1
| | | | | | | | | | | | | | | | | | | increasingly prevailing case to the point that new features like ARC don't even support the fragile ABI anymore. This required a little bit of reshuffling with exceptions because a check was assuming that ObjCNonFragileABI was only being set in ObjC mode, and that's actually a bit obnoxious to do. Most, though, it involved a perl script to translate a ton of test cases. Mostly no functionality change for driver users, although there are corner cases with disabling language-specific exceptions that we should handle more correctly now. llvm-svn: 140957
* objc++ arc: Diagnose block pointer type mismatch whenFariborz Jahanian2011-09-281-0/+20
some arguments types are ns_consumed and some otherwise matching types are not. This fixes the objc++ side only *auch*. // rdar://10187884 llvm-svn: 140717
OpenPOWER on IntegriCloud