[cfe-dev] redirect clang warning/error ouput
Jonas Devlieghere via cfe-dev
cfe-dev at lists.llvm.org
Wed Aug 16 18:46:24 PDT 2017
Hi Ogzu,
Clang prints both errors and warnings to stderr. You could redirect stdout
to a file and redirect stderr to stdout: clang foo.c > file 2>&1
Cheers,
Jonas
On Wed, Aug 16, 2017 at 4:39 PM, ogzu rasa via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> Hello,
> How can I redirect clang (version 3.8.1) warning/error message to a buffer
> ?
>
> Thanks in advance for helps,
> ogzu
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Garanti
> sans virus. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#m_7454206286853231618_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170816/3676c0b1/attachment.html>
More information about the cfe-dev
mailing list