<div dir="rtl"><div dir="ltr">I'm trying to disable specific notes which may be more confusing than helpful in some cases. </div><div dir="ltr">For <font face="arial, helvetica, sans-serif">instance <span style="font-size:12.800000190734863px">note_ovl_candidate_bad_</span><span style="font-size:12.800000190734863px">overload may emit a long page of possible overloads for a one-letter mistake in typing, which isn't really helpful.</span></font></div>
<div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="font-size:12.800000190734863px"><br></span></font></div><div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="font-size:12.800000190734863px">I was hoping to disable notes using mapping just like warnings but discovered that notes are handled as a special case and can't be mapped. </span></font></div>
<div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="font-size:12.800000190734863px"><br></span></font></div><div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="font-size:12.800000190734863px">Yaron</span></font></div>
<div dir="ltr"><font face="arial, helvetica, sans-serif"><span style="font-size:12.800000190734863px"><br></span></font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2013/11/8 Jordan Rose <span dir="ltr"><<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@apple.com</a>></span></div>
<blockquote class="gmail_quote" style="margin:0 .8ex;border-left:1px #ccc solid;border-right:1px #ccc solid;padding-left:1ex;padding-right:1ex"><div style="word-wrap:break-word"><div>I think I would try using a custom DiagnosticConsumer instead, but as usual, What Are You Really Trying To Do?™</div>
<div><br></div><br><div><div><div class="h5"><div>On Nov 7, 2013, at 3:08 , Yaron Keren <<a href="mailto:yaron.keren@gmail.com" target="_blank">yaron.keren@gmail.com</a>> wrote:</div><br></div></div><blockquote type="cite">
<div><div class="h5"><div dir="rtl"><div dir="ltr">I'm trying to have a clang emit an error message without the associated notes.</div><div dir="ltr">First tried to use mapping:</div><div dir="ltr"><div dir="ltr"><font face="courier new, monospace"> Diags.setDiagnosticMapping(diag::note_ovl_candidate_bad_overload, d</font><span style="font-family:'courier new',monospace">iag::MAP_IGNORE, SourceLocation());</span></div>
<div><br></div><div>which did not work, since DiagnosticIDs::getDiagnosticLevel specifically ignores the mapping for notes:</div><div><br></div><div><div><font face="courier new, monospace"> unsigned DiagClass = getBuiltinDiagClass(DiagID);</font></div>
<div><font face="courier new, monospace"> if (DiagClass == CLASS_NOTE) return DiagnosticIDs::Note;</font></div><div><font face="courier new, monospace"> return getDiagnosticLevel(DiagID, DiagClass, Loc, Diag);</font></div>
</div><div><br></div><div>is there another way?<br></div><div><br></div><div>Yaron</div><div><br></div></div></div></div></div>
_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div></blockquote></div><br></div>