summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-12 15:28:47 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-06-12 15:28:47 (GMT)
commit1f00d738bde27a55531d27ba311d977fb9c59539 (patch)
treeab24033de76ce3e967ea172e48092a6d0dbd40a0 /Modules
parent031ee74a63d98a4e21ba47eeb67ccd0b642b6daf (diff)
parent34f95bcfff1bda0a43e4ff47fe8c6b7c2d1485d3 (diff)
downloadCMake-1f00d738bde27a55531d27ba311d977fb9c59539.zip
CMake-1f00d738bde27a55531d27ba311d977fb9c59539.tar.gz
CMake-1f00d738bde27a55531d27ba311d977fb9c59539.tar.bz2
Merge topic 'doc-WCDH-align-macros'
34f95bcf WCDH: Document the alignof and alignas wrapper macros.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/WriteCompilerDetectionHeader.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/WriteCompilerDetectionHeader.cmake b/Modules/WriteCompilerDetectionHeader.cmake
index bf2dc37..d7992fe 100644
--- a/Modules/WriteCompilerDetectionHeader.cmake
+++ b/Modules/WriteCompilerDetectionHeader.cmake
@@ -146,6 +146,16 @@
# ``[[deprecated]]`` attribute or a compiler-specific decorator such
# as ``__attribute__((__deprecated__))`` used by GNU compilers.
#
+# The ``cxx_alignas`` feature provides a macro definition
+# ``<PREFIX>_ALIGNAS`` which expands to either the standard ``alignas``
+# decorator or a compiler-specific decorator such as
+# ``__attribute__ ((__aligned__))`` used by GNU compilers.
+#
+# The ``cxx_alignof`` feature provides a macro definition
+# ``<PREFIX>_ALIGNOF`` which expands to either the standard ``alignof``
+# decorator or a compiler-specific decorator such as ``__alignof__``
+# used by GNU compilers.
+#
# ============================= ================================ =====================
# Feature Define Symbol
# ============================= ================================ =====================