[llvm] r278170 - Add a platform independent version of __PRETTY_FUNCTION__.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 11 11:35:42 PDT 2016


No (just tested on windows with the cl driver and with the gcc style
driver).  If you were to do this on Windows it wouldn't matter because that
would be caught by the first branch #if defined(LLVM_ON_WIN32).  But you
can run clang in Microsoft on Linux, for example.  And in that case neither
LLVM_ON_WIN32 nor __GNUC__ would be defined.

On Thu, Aug 11, 2016 at 5:23 AM Michael Kruse via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> 2016-08-11 14:21 GMT+02:00 Joerg Sonnenberger via llvm-commits
> <llvm-commits at lists.llvm.org>:
> > On Wed, Aug 10, 2016 at 10:17:22PM +0000, Zachary Turner wrote:
> >> __GNUC__ will be defined for GCC but __clang__ will not, right?
> >
> > clang defines both, GCC only the former. So checking for the former
> > covers both.
>
> Does clang define __GNUC__ even in Microsoft mode?
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160811/361dda24/attachment.html>


More information about the llvm-commits mailing list