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)
commit158ba130eec9997716b22bdf2bfe476d9f73104a
tree0e518abb7dd34a9f327040560a43faeff97ef763
parentd1fc17b931dac5f02baf9400000e44840c2bd5ba
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.

llvm-svn: 201037
clang/lib/Frontend/InitPreprocessor.cpp
clang/test/Preprocessor/init.c