[PATCH] D26826: [libcxx] Implement locale.h to fix modules build

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 17 18:20:34 PST 2016


EricWF created this revision.
EricWF added reviewers: mclow.lists, rsmith.
EricWF added a subscriber: cfe-commits.

Because `locale.h` isn't part of the libc++ modules the class definitions it provides are exported as part of `__locale` (since it happens to be build first). This breaks `<clocale>` which exports `std::lconv` without including `<__locale>`.

This patch implements `locale.h` to fix this issue, it also adds support for testing libc++ with modules.


https://reviews.llvm.org/D26826

Files:
  include/locale.h
  include/module.modulemap
  test/libcxx/depr/depr.c.headers/locale_h.pass.cpp
  test/libcxx/modules/clocale_exports.sh.cpp
  test/libcxx/test/config.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26826.78448.patch
Type: text/x-patch
Size: 6071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161118/f0bb68c8/attachment-0001.bin>


More information about the cfe-commits mailing list