Skip to content

Commit 900ec8f

Browse files
committed
Do not yet set the featurte test macro
1 parent 30c92b1 commit 900ec8f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

clang/lib/Frontend/InitPreprocessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
768768
Builder.defineMacro("__cpp_pack_indexing", "202311L");
769769
Builder.defineMacro("__cpp_deleted_function", "202403L");
770770
Builder.defineMacro("__cpp_variadic_friend", "202403L");
771-
Builder.defineMacro("__cpp_trivial_relocatability", "202502L");
771+
//Builder.defineMacro("__cpp_trivial_relocatability", "202502L");
772772

773773
if (LangOpts.Char8)
774774
Builder.defineMacro("__cpp_char8_t", "202207L");

clang/www/cxx_status.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,12 @@ <h2 id="cxx26">C++2c implementation status</h2>
280280
<tr>
281281
<td>Trivial Relocatability</pre></td>
282282
<td><a href="https://wg21.link/P2786">P2786R13</a></td>
283-
<td class="unreleased" align="center">Clang 21</td>
283+
<td class="partial" align="center">
284+
<details>
285+
<summary>Clang 21 (Partial)</summary>
286+
The feature test macro (<code>__cpp_trivial_relocatability</code>) has not yet been set.
287+
</details>
288+
</td>
284289
</tr>
285290
<tr>
286291
<td><pre>#embed</pre></td>

0 commit comments

Comments
 (0)