]> granicus.if.org Git - clang/commit
Preprocessor: Add __ALIGNOF_MAX_ALIGN_T__
authorDavid Majnemer <david.majnemer@gmail.com>
Sun, 9 Feb 2014 05:30:48 +0000 (05:30 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sun, 9 Feb 2014 05:30:48 +0000 (05:30 +0000)
commitc809e1493facfee2a47e47d735c6db16a5c65ea4
tree1ccfae3daaa2b54c8b073972fdc0fb88aee104a6
parentbe9778d3046b54d4b399b3f4523b12c3286da474
Preprocessor: Add __ALIGNOF_MAX_ALIGN_T__

TargetInfo::getSuitableAlign() was introduced in r146762 and is defined
as alignof(std::max_align_t).

Introduce __ALIGNOF_MAX_ALIGN_T__ which exposes getSuitableAlign() so
that libc++ may take advantage of it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201037 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/InitPreprocessor.cpp
test/Preprocessor/init.c