gumtree icon indicating copy to clipboard operation
gumtree copied to clipboard

C++ Spurious Moves, Adds and Deletes

Open csiefer2 opened this issue 3 years ago • 3 comments

Using gumtree webdiff -m gumtree-simple, -m gumtree-hybrid, or no -m, generates spurious add/deletes as well as spurious moves on the attached C++ header files. gumtree htmldiff has similar pathologies.

bugreport.zip

csiefer2 avatar Sep 09 '21 16:09 csiefer2

OK this one is weird. They were some missing information in the AST that I gathered in the few last commits. However the file remains unadequately handled by the algorithms. I have to dig though the algorithms to understand if it's possible to do better :)

jrfaller avatar Sep 14 '21 17:09 jrfaller

I also use -m gumtree-simple and -m gumtree-hybrid.But I don't know what they mean. Where can I find explanations for these two options?

zxylz avatar Dec 23 '21 14:12 zxylz

There are none at the moment, although I am trying to put an article together explaining them, but it keeps getting delayed because I prioritize new topics. In short they are faster algorithms than the default one, with a comparable accuracy.

jrfaller avatar Jan 02 '22 15:01 jrfaller

Fixed using the simple heuristic

jrfaller avatar Nov 27 '23 19:11 jrfaller