[PATCH] D46443: Add missing cstdalign header
Sam Clegg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 4 11:52:38 PDT 2018
sbc100 updated this revision to Diff 145247.
sbc100 added a comment.
- revert
Repository:
rCXX libc++
https://reviews.llvm.org/D46443
Files:
include/cstdalign
test/libcxx/min_max_macros.sh.cpp
test/libcxx/utilities/any/size_and_alignment.pass.cpp
Index: test/libcxx/utilities/any/size_and_alignment.pass.cpp
===================================================================
--- test/libcxx/utilities/any/size_and_alignment.pass.cpp
+++ test/libcxx/utilities/any/size_and_alignment.pass.cpp
@@ -14,6 +14,7 @@
// Check that the size and alignment of any are what we expect.
#include <any>
+#include <cstdalign>
int main()
{
Index: test/libcxx/min_max_macros.sh.cpp
===================================================================
--- test/libcxx/min_max_macros.sh.cpp
+++ test/libcxx/min_max_macros.sh.cpp
@@ -70,6 +70,8 @@
TEST_MACROS();
#include <csignal>
TEST_MACROS();
+#include <cstdalign>
+TEST_MACROS();
#include <cstdarg>
TEST_MACROS();
#include <cstdbool>
Index: include/cstdalign
===================================================================
--- /dev/null
+++ include/cstdalign
@@ -0,0 +1,33 @@
+// -*- C++ -*-
+//===--------------------------- cstdalign --------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP_CSTDALIGN
+#define _LIBCPP_CSTDALIGN
+
+/*
+ cstdalign synopsis
+
+Macros:
+
+ alignof
+ alignas
+ __alignof_is_defined
+ __alignas_is_defined
+
+*/
+
+#include <__config>
+#include <stdalign.h>
+
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+#pragma GCC system_header
+#endif
+
+#endif // _LIBCPP_CSTDALIGN
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46443.145247.patch
Type: text/x-patch
Size: 1608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180504/5bdf3c8e/attachment.bin>
More information about the cfe-commits
mailing list