[libcxx-commits] [libcxx] ad0dfb4 - [libc++] Document the format of _LIBCPP_VERSION
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Sep 19 12:31:15 PDT 2022
Author: Louis Dionne
Date: 2022-09-19T15:31:02-04:00
New Revision: ad0dfb4f5e07c337af45e1c4f515b762d2d1c395
URL: https://github.com/llvm/llvm-project/commit/ad0dfb4f5e07c337af45e1c4f515b762d2d1c395
DIFF: https://github.com/llvm/llvm-project/commit/ad0dfb4f5e07c337af45e1c4f515b762d2d1c395.diff
LOG: [libc++] Document the format of _LIBCPP_VERSION
Differential Revision: https://reviews.llvm.org/D134187
Added:
Modified:
libcxx/include/__config
Removed:
################################################################################
diff --git a/libcxx/include/__config b/libcxx/include/__config
index 681c10306420..b7ec57321780 100644
--- a/libcxx/include/__config
+++ b/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 XX.Y.ZZ (e.g. LLVM 16.0.1 == 16.0.01), _LIBCPP_VERSION is
+// defined to XXYZZ.
# define _LIBCPP_VERSION 16000
# define _LIBCPP_CONCAT_IMPL(_X, _Y) _X##_Y
More information about the libcxx-commits
mailing list