<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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>On Nov 7, 2013, at 3:08 , Yaron Keren <<a href="mailto:yaron.keren@gmail.com">yaron.keren@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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>
_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></blockquote></div><br></body></html>