]> sourceware.org Git - systemtap.git/commit
add mismatch_complexity
authorJonathan Lebon <jlebon@redhat.com>
Mon, 11 Nov 2013 17:19:35 +0000 (12:19 -0500)
committerJonathan Lebon <jlebon@redhat.com>
Tue, 12 Nov 2013 21:01:45 +0000 (16:01 -0500)
commitc74ddc54952c1fcd73cdacacff3bfe95dbabfdcc
tree78797b29d57aae2f42222fb628bf539077e86224
parent18bac841af1612e34336d91aa527c4b0a8d80537
add mismatch_complexity

The mismatch_complexity variable allows us to only print out the most
complex kind of mismatch, and skip over simpler mismatches, in order to
keep the mismatch reporting as simple to understand as possible.

When assert_resolvability is false, mismatch_complexity simply remembers
the most complex mismatch we've met so far during each pass (e.g.
unresolved() is 0, mismatch(e) is 1, mismatch(tok, t1, t2) is 2, and
mismatch(tok, t, decl, index) is 3).

Once we turn on assert_resolvability, we check mismatch_complexity in
mismatch() and unresolved() to determine whether to print out an error
or not. If mismatch_complexity is higher than our own complexity, then
we don't print anything since we know that there is a better-suited
mismatch coming up.
elaborate.cxx
elaborate.h
This page took 0.025629 seconds and 5 git commands to generate.