[libcxx-commits] [PATCH] D134187: [libc++] Document the format of _LIBCPP_VERSION

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Sep 19 08:29:08 PDT 2022


ldionne created this revision.
ldionne added a reviewer: thieta.
Herald added a project: All.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134187

Files:
  libcxx/include/__config


Index: libcxx/include/__config
===================================================================
--- libcxx/include/__config
+++ libcxx/include/__config
@@ -24,6 +24,9 @@
 
 #ifdef __cplusplus
 
+// _LIBCPP_VERSION represents the version of libc++, which matches the version of LLVM.
+// Given a LLVM release LLVM AB.C.DE (e.g. LLVM 16.0.1 == 16.0.01), _LIBCPP_VERSION is
+// defined to ABCDE.
 #  define _LIBCPP_VERSION 16000
 
 #  define _LIBCPP_CONCAT_IMPL(_X, _Y) _X##_Y


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134187.461218.patch
Type: text/x-patch
Size: 477 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220919/7eeca2cc/attachment.bin>


More information about the libcxx-commits mailing list