<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>