<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi All,</p>
<p><br>
</p>
<p>Is it possible to modify a Diagnostic in-flight? Or copy a diagnostic and then modify the copy? For example, I'm trying to write a DiagnosticConsumer which can add fix-it hints to diagnostics emitted by the Clang parser. So I'm hoping to have something like</p>
<p><br>
</p>
<p>MyDiagConsumer::HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info) {</p>
<p> Diagnostic NewDiag = addFixIt(Info);</p>
<p> MyTextDiagConsumer.HandleDiagnostic(DiagLevel, NewDiag);</p>
<p>}</p>
<p><br>
</p>
<p>Thanks in advance,</p>
<p><br>
</p>
<p>Scott Constable</p>
</div>
</body>
</html>