Displaying 2 results from an estimated 2 matches for "clangdiff".
2017 Mar 30
2
[GSoC 2017] Clang-based diff tool project
...while (false);
> int funkyVariable = 1;
> funkyVariable++;
> }
> int main(int argc, const char **argv) {
> if (argc > 2) {
> return 1;
> }
> switch (argc) {
> }
> while (false);
> int funkyVariable = 1;
> funkyVariable++;
> }
> ./clangDiff
> Change: SwitchStmt moved from line 2 to line 5
> Change: IfStmt moved from line 4 to line 2
>
Neat! :)
>
> Here is how it looks https://gist.github.com/Teemperor/b252bae4b2544f57d6bb9580a0e890e4 <https://gist.github.com/Teemperor/b252bae4b2544f57d6bb9580a0e890e4>...
2017 Mar 23
5
[GSoC 2017] Clang-based diff tool project
My original idea was to write a semantic diff tool that just does some simple things up front:
create an MD5 from all top level blocks of the code. Start by just finding matching blocks of code ('{' and '}', '(' and ')') and remember the source locations for these and their MD5 values. Run a normal diff on the code and see what blocks the diffs fall into. Then try