[llvm-commits] [PATCH] Add function for computing the edit distance of two arrays.

Dmitri Gribenko gribozavr at gmail.com
Tue Feb 14 15:49:57 PST 2012


On Wed, Feb 15, 2012 at 1:39 AM, Kaelyn Uhrain <rikka at google.com> wrote:
> Accomplished by moving the body of StringRef::edit_distance into
> a separate function that accepts two ArrayRefs, and making
> StringRef::edit_distance a wrapper around the new function.

Just a nitpick: after renaming parameters there is now an 80-column
violation.  Also, `previous' and `current' should be probably
capitalized.

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 llvm-commits mailing list