[llvm-bugs] [Bug 25407] New: Add a dedicated Standard C++ Library vendor macro string
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 4 22:53:29 PST 2015
https://llvm.org/bugs/show_bug.cgi?id=25407
Bug ID: 25407
Summary: Add a dedicated Standard C++ Library vendor macro
string
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: m-w4 at gmx.de
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
Unlike other compilers, Clang supports various Standard C++ Libraries. It is
extremely difficult to determine from inside a program code which library from
which vendor in which version is actually used. Currently that is somewhat
feature-based. The problem emerges in particular on windows having gcc, clang's
libc++ and msvc, but also on linux having gcc and clang.
It would be most helpful to have a dedicated predefined macro string indicating
the vendor and the compiler/library version of that vendor. As an example,
clang could provide a __LIBCXX_VENDOR="GCC" and
__LIBCXX_VENDOR_VERSION="4.8.3", or accordingly __LIBCXX_VENDOR="CLANG" with
__LIBCXX_VENDOR_VERSION="3.7.0" etc. Such definitions would simplify the
identification of known peculiarities between the different implementations in
a program code, in particular for C++14 and newer features.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151105/a8d8c5f6/attachment-0001.html>
More information about the llvm-bugs
mailing list