summaryrefslogtreecommitdiffstats
path: root/libcxx/include/cstddef
Commit message (Collapse)AuthorAgeFilesLines
* Update more file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | | to reflect the new license. These used slightly different spellings that defeated my regular expressions. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351648
* Implement the infrastructure for feature-test macros. Very few actual ↵Marshall Clow2018-09-121-0/+1
| | | | | | feature test macros, though. Reviewed as: https://reviews.llvm.org/D51955 llvm-svn: 342073
* Teach libc++ to use native NetBSD's max_align_tKamil Rytarowski2018-08-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Summary: The NetBSD headers ship with max_align_t, that is not compatible with the fallback version in libc++. There is no defined a compiler specific symbol in the headers like: - __CLANG_MAX_ALIGN_T_DEFINED - _GCC_MAX_ALIGN_T - __DEFINED_max_align_t Sponsored by <The NetBSD Foundation> Reviewers: chandlerc, dlj, EricWF, joerg Reviewed By: joerg Subscribers: bsdjhb, llvm-commits, cfe-commits Differential Revision: https://reviews.llvm.org/D47814 llvm-svn: 340224
* [NFC][libc++] Consistently use spaces to indentLouis Dionne2018-08-031-13/+13
| | | | | | rdar://problem/19988944 llvm-svn: 338933
* Implement LWG2950: std::byte operations are misspecifiedMarshall Clow2017-11-141-10/+33
| | | | llvm-svn: 318125
* Implement P0298R3: 'std::byte'. Reviewed as https://reviews.llvm.org/D31022Marshall Clow2017-03-241-0/+29
| | | | llvm-svn: 298689
* Check for musl-libc's max_align_t in addition to other variants.David L. Jones2017-02-101-1/+2
| | | | | | | | | | | | | | | | | | Summary: Libcxx will define its own max_align_t when it is not available. However, the availability checks today only check for Clang's definition and GCC's definition. In particular, it does not check for musl's definition, which is the same as GCC's but guarded with a different macro. Reviewers: mclow.lists, EricWF Reviewed By: EricWF Subscribers: chandlerc, cfe-commits Differential Revision: https://reviews.llvm.org/D28478 llvm-svn: 294683
* PR25118: move system_header pragma before uses of include_next to avoid ↵Richard Smith2015-10-091-3/+4
| | | | | | extension warnings for people finding libc++ headers via -I paths. llvm-svn: 249788
* Split <stddef.h> out of <cstddef>.Richard Smith2015-10-081-2/+2
| | | | | | | | | | | | | | There are a bunch of macros (__need_size_t etc) that request just one piece of <stddef.h>; if any one of these is defined, we just directly include the underlying header. Note that <stddef.h> provides a ::nullptr_t. We don't want that available to includers of <cstddef>, so instead of following the usual pattern where <cfoo> includes <foo.h> then pulls things from :: into std:: with using-declarations, we implement <stddef.h> and <cstddef> separately; both include <__nullptr> for the definition of std::nullptr_t. llvm-svn: 249761
* Factor definition of std::nullptr_t out of <cstddef> into a header that can ↵Richard Smith2015-10-081-44/+1
| | | | | | also be used by <stddef.h>. llvm-svn: 249737
* Update cstddef after clang r207606.Nico Weber2014-05-161-6/+0
| | | | | | | | | | | r207606 changed the __need_foo macros to behave like they do with gcc: If they are set, _only_ the __need_foo stuff gets defined. As a consequence, cstddef no longer defined "offsetof". It looks like the __need_foo defines aren't needed anymore, so just remove them. Fixes PR19723. llvm-svn: 208942
* Teach libc++ to use the compiler-provided C-compatible ::max_align_tChandler Carruth2014-02-211-0/+5
| | | | | | | | rather than its own type for std::max_align_t. This is particularly relevant as the types may not be ABI compatible despite users expecting them to be. llvm-svn: 201843
* Nico Rieck: this patch series fixes visibility issues on Windows as ↵Howard Hinnant2013-08-121-1/+1
| | | | | | explained in <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-August/031214.html>. llvm-svn: 188192
* No functionality change at this time. I've split _LIBCPP_VISIBLE up into ↵Howard Hinnant2013-03-061-1/+1
| | | | | | two flags: _LIBCPP_TYPE_VIS and _LIBCPP_FUNC_VIS. This is in preparation for taking advantage of clang's new __type_visibility__ attribute. llvm-svn: 176593
* Rename uses of _ and __ because these are getting stepped on by macros from ↵Howard Hinnant2012-10-301-3/+3
| | | | | | other system code. llvm-svn: 167038
* Apply the emulated nullptr_t with constexpr. This is an unusual ↵Howard Hinnant2012-09-241-11/+11
| | | | | | configuration that would take advantage of this. But it has popped up in the wild and does no harm to support it. llvm-svn: 164575
* Give the emulated nullptr_t a default constructor.Howard Hinnant2012-02-181-0/+1
| | | | llvm-svn: 150893
* Windows support by Ruben Van Boxem.Howard Hinnant2011-10-171-0/+2
| | | | llvm-svn: 142235
* _STD -> _VSTD to avoid macro clash on windowsHoward Hinnant2011-06-301-1/+1
| | | | llvm-svn: 134190
* Move nullptr_t to unversioned namespace: Sean HuntHoward Hinnant2011-06-051-4/+9
| | | | llvm-svn: 132665
* license changeHoward Hinnant2010-11-161-2/+2
| | | | llvm-svn: 119395
* I have reverted all contributions made by Jesse Towner in revision 110724Howard Hinnant2010-11-161-36/+0
| | | | llvm-svn: 119383
* visibility-decoration.Howard Hinnant2010-09-211-1/+1
| | | | llvm-svn: 114486
* Fixing whitespace problemsHoward Hinnant2010-08-221-6/+6
| | | | llvm-svn: 111750
* patch by Jesse Towner, and bug fix by Sebastian RedlHoward Hinnant2010-08-101-0/+36
| | | | llvm-svn: 110724
* for UbuntuHoward Hinnant2010-06-021-0/+7
| | | | llvm-svn: 105338
* I've reverted the changes needed for Ubuntu. The changes for Ubuntu should ↵Howard Hinnant2010-06-021-4/+0
| | | | | | go under a #if and I'm not sure what that #if should look like. llvm-svn: 105337
* Fixed [support.types]. <cstddef> wasn't definining NULL or offsetof.Howard Hinnant2010-05-281-0/+2
| | | | llvm-svn: 104982
* patch by Jeffrey Yasskin for porting to Ubuntu Hardy. Everything was ↵Howard Hinnant2010-05-241-0/+2
| | | | | | accepted except there were some bug fixes needed in <locale> for the __nolocale_* series. For the apple branch I ended up using templates instead of the var_args solution because it seemed both safer and more efficient. llvm-svn: 104516
* [rand.dist.norm.f]Howard Hinnant2010-05-181-4/+4
| | | | llvm-svn: 104035
* Wiped out some non-ascii characters that snuck into the copyright.Howard Hinnant2010-05-111-1/+1
| | | | llvm-svn: 103516
* libcxx initial importHoward Hinnant2010-05-111-0/+88
llvm-svn: 103490
OpenPOWER on IntegriCloud