<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Add a dedicated Standard C++ Library vendor macro string"
href="https://llvm.org/bugs/show_bug.cgi?id=25407">25407</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Add a dedicated Standard C++ Library vendor macro string
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>m-w4@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>