<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(7,55,99)">Hi O<span style="font-size:12.800000190734863px;font-family:arial,sans-serif;color:rgb(34,34,34)">gzu,</span></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(7,55,99)"><span style="font-size:12.800000190734863px;font-family:arial,sans-serif;color:rgb(34,34,34)"><br></span></div><div class="gmail_default"><span style="font-size:12.800000190734863px">Clang prints both errors and warnings to stderr. You could redirect stdout to a file and redirect stderr to stdout: clang foo.c </span>> file 2>&1</div><div class="gmail_default"><br></div><div class="gmail_default">Cheers,</div><div class="gmail_default">Jonas</div><div class="gmail_extra">
<br><div class="gmail_quote">On Wed, Aug 16, 2017 at 4:39 PM, ogzu rasa via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hello,<br></div>How can I redirect clang (version 3.8.1) warning/error message to a buffer ?<br></div><div><br></div>Thanks in advance for helps,<br></div>ogzu<br></div><div id="m_7454206286853231618DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
<tbody><tr>
<td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width:46px;height:29px"></a></td>
<td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Garanti sans virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" style="color:#4453ea" target="_blank">www.avast.com</a> </td>
</tr>
</tbody></table>
<a href="#m_7454206286853231618_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>
<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div>