[libcxx-commits] [PATCH] D106935: [libc++][nfc] Improve error diagnostics.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 28 08:57:38 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG4e6568857122: [libc++][nfc] Improve error diagnostics. (authored by Mordante).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106935/new/

https://reviews.llvm.org/D106935

Files:
  libcxx/include/filesystem
  libcxx/include/locale.h


Index: libcxx/include/locale.h
===================================================================
--- libcxx/include/locale.h
+++ libcxx/include/locale.h
@@ -36,7 +36,8 @@
 #include <__config>
 
 #if defined(_LIBCPP_HAS_NO_LOCALIZATION)
-#   error "Localization is not supported by this configuration of libc++"
+#error                                                                                                                 \
+    "The Localization library is not supported since libc++ has been configured with LIBCXX_ENABLE_LOCALIZATION disabled"
 #endif
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
Index: libcxx/include/filesystem
===================================================================
--- libcxx/include/filesystem
+++ libcxx/include/filesystem
@@ -253,7 +253,7 @@
 #endif
 
 #if defined(_LIBCPP_HAS_NO_FILESYSTEM_LIBRARY)
-# error "The Filesystem library is not supported by this configuration of libc++"
+# error "The Filesystem library is not supported since libc++ has been configured with LIBCXX_ENABLE_FILESYSTEM disabled"
 #endif
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106935.362417.patch
Type: text/x-patch
Size: 1125 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210728/ef6ccdb0/attachment.bin>


More information about the libcxx-commits mailing list