r200082 - Rename getResultType() on function and method declarations to getReturnType()

Dmitri Gribenko gribozavr at gmail.com
Sat Jan 25 09:55:55 PST 2014


() On Sat, Jan 25, 2014 at 6:55 PM, Alp Toker <alp at nuanti.com> wrote:
> Author: alp
> Date: Sat Jan 25 10:55:45 2014
> New Revision: 200082
>
> URL: http://llvm.org/viewvc/llvm-project?rev=200082&view=rev
> Log:
> Rename getResultType() on function and method declarations to getReturnType()
>
> A return type is the declared or deduced part of the function type specified in
> the declaration.
>
> A result type is the (potentially adjusted) type of the value of an expression
> that calls the function.
>
> Rule of thumb:
>
>   * Declarations have return types and parameters.
>   * Expressions have result types and arguments.

Hi Alp,

Should FunctionTypeLoc::getResultLoc() be renamed as well?

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-commits mailing list