Displaying 2 results from an estimated 2 matches for "funkyvariable".
Did you mean:
funkyvariable++
2017 Mar 30
2
[GSoC 2017] Clang-based diff tool project
...;).
>
> Raphael hacked together a few lines of code, addressing Greg's proposal based on D23418.
>
>
> r1 r2
> int main(int argc, const char **argv) {
> switch (argc) {
> }
> if (argc > 2) {
> return 1;
> }
> 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 move...
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