[PATCH] PR15291: noreturn adjustment in overload resolution for function templates

Douglas Gregor dgregor at apple.com
Wed Apr 17 01:47:44 PDT 2013


Committed as r179680, thanks! Please go ahead and close the PR.

	- Doug

On Apr 16, 2013, at 8:46 PM, Alexander Zinenko <ftynse at gmail.com> wrote:

> Hello Doug!
> 
> Thanks for the review!
> Everything mentioned is fixed. Please find the updated patch attached.
> 
> 
> On 16 April 2013 19:41, Douglas Gregor <dgregor at apple.com> wrote:
> 
> On Mar 7, 2013, at 8:39 PM, Alexander Zinenko <ftynse at gmail.com> wrote:
> 
>> Ping?
> 
> +bool Sema::SameTypesOrCompatibleFunctions(QualType Param,
> +                                          QualType Arg) {
> 
> We're starting function names with a lowercase letter now. How about calling this isSameOrCompatibleFunctionType?
> 
> +  if (!ParamFunction || !ArgFunction)
> +    return Param == Arg;
> 
> Please change the parameters to CanQualTypes, because these == operations only work because we know we're getting canonical types, and that's not clear from the interface.
> 
> +  if (IsNoReturnConversion(Param, Arg, AdjustedParam))
> +    return Arg == AdjustedParam;
> 
> You'll probably need to recanonicalize AdjustedParam here.
> 
> +  // TODO(ftynse): Compatible calling conventions.
> +  
> Usually we just write "FIXME: what we need to fix"
> 
> Otherwise, this patch looks great!
> 
> 	- Doug
> 
> 
> <PR15291.patch>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130417/736f40bf/attachment.html>


More information about the cfe-commits mailing list