Announcement

Collapse
No announcement yet.

Please add consideration for function grouping in C / java comparison

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Please add consideration for function grouping in C / java comparison

    One of the very common misalignment is this:

    Original:

    Code:
    bool
    Foo (...)
    {
        return 0;
    }
    New:

    Code:
    bool
    Bar (...)
    {
        ...
        return 0;
    }
    
    bool
    Foo (...)
    {
    return 0;
    }
    Beyond Compare almost always put the first match of bool with Bar function, and then Foo at a much later place.

    Conversely, I almost always sees "return 0; }" part being split to match another function.

    It gets quite annoying when doing code review using beyond compare. I am wondering if it is possible for Beyond Compare to add function group considerations in comparing C/C++/Java files.

  • #2
    Hello,

    Please try the Text Compare's Session menu -> Session Settings, Alignment tab. I believe the Patience Diff algorithm will work better for this example.
    Aaron P Scooter Software

    Comment

    Working...
    X