forked from OSchip/llvm-project
parent
0dea246b4f
commit
f5d8a75efa
|
@ -510,7 +510,6 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
|
|||
if (LangOpts.CPlusPlus1z) {
|
||||
Builder.defineMacro("__cpp_hex_float", "201603");
|
||||
Builder.defineMacro("__cpp_inline_variables", "201606");
|
||||
//Builder.defineMacro("__cpp_aligned_new", "201606");
|
||||
//Builder.defineMacro("__cpp_noexcept_function_type", "201510");
|
||||
Builder.defineMacro("__cpp_capture_star_this", "201603");
|
||||
Builder.defineMacro("__cpp_if_constexpr", "201606");
|
||||
|
@ -522,6 +521,8 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
|
|||
Builder.defineMacro("__cpp_nontype_template_args", "201411");
|
||||
Builder.defineMacro("__cpp_fold_expressions", "201603");
|
||||
}
|
||||
if (LangOpts.AlignedAllocation)
|
||||
Builder.defineMacro("__cpp_aligned_new", "201606");
|
||||
|
||||
// TS features.
|
||||
if (LangOpts.ConceptsTS)
|
||||
|
|
|
@ -30,8 +30,7 @@
|
|||
#error "wrong value for __cpp_inline_variables"
|
||||
#endif
|
||||
|
||||
#if check(aligned_new, 0, 0, 0, 0) // FIXME: provisional name
|
||||
// FIXME: value shuld be 201606 for cxx1z once implemented
|
||||
#if check(aligned_new, 0, 0, 0, 201606) // FIXME: provisional name
|
||||
#error "wrong value for __cpp_aligned_new"
|
||||
#endif
|
||||
|
||||
|
|
|
@ -679,7 +679,7 @@ as the draft C++1z standard evolves.
|
|||
<tr>
|
||||
<td>Dynamic memory allocation for over-aligned data</td>
|
||||
<td><a href="http://wg21.link/p0035r4">P0035R4</a></td>
|
||||
<td class="none" align="center">No</td>
|
||||
<td class="svn" align="center">SVN</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Template argument deduction for class templates</td>
|
||||
|
|
Loading…
Reference in New Issue