<div dir="ltr"><div>Hi list,</div><div><br></div><div>Is there any way to get a BugReporterVisitor to delete path diagnostic notes that occur at program points that my plugin doesn't consider interesting?</div><div><br></div><div>For example,</div><div><br></div><div>void f() {</div><div>  if (!someResult())</div><div>    return;</div><div>  if (!otherResult())</div><div>    return;<br></div><div>  int foo = 3;</div><div>  neverCallThisAPIWith3(foo);</div><div>}</div><div><br></div><div>If I am checking that neverCallThisAPIWith3() is never called with 3, then in this case there are a lot of irrelevant path diagnostic notes due to the early returns. (e.g. we always see "note: Taking false branch" on the if-statements, but if we took the true branch on either of them, then we wouldn't get to the 'foo' part.) Really what I want to show in my diagnostic is notes that concern the value of variable 'foo'. If possible, I'd like to prune the notes that distinguish the path from other paths where 'foo' is never even declared.</div><div><br></div><div>Is this possible? I don't see any method in the docs to delete a note from a BugReport, in the first place. (Even disregarding the question of whether the criterion that I mentioned for discarding path notes is possible)<br></div><div><br></div><div>Cheers,<br></div><div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Philip C<br></div></div></div>