Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clang/lib/Frontend/InitPreprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts,
Builder.defineMacro("__cpp_pack_indexing", "202311L");
Builder.defineMacro("__cpp_deleted_function", "202403L");
Builder.defineMacro("__cpp_variadic_friend", "202403L");
// Builder.defineMacro("__cpp_trivial_relocatability", "202502L");
Builder.defineMacro("__cpp_trivial_relocatability", "202502L");

if (LangOpts.Char8)
Builder.defineMacro("__cpp_char8_t", "202207L");
Expand Down
4 changes: 4 additions & 0 deletions clang/test/Lexer/cxx-features.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
#error "wrong value for __cpp_placeholder_variables"
#endif

#if check(trivial_relocatability, 202502, 202502, 202502, 202502, 202502, 202502, 202502)
#error "wrong value for __cpp_trivial_relocatability"
#endif

// --- C++23 features ---

#if check(auto_cast, 0, 0, 0, 0, 0, 202110, 202110)
Expand Down
7 changes: 1 addition & 6 deletions clang/www/cxx_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,7 @@ <h2 id="cxx26">C++2c implementation status</h2>
<tr>
<td>Trivial Relocatability</pre></td>
<td><a href="https://wg21.link/P2786">P2786R13</a></td>
<td class="partial" align="center">
<details>
<summary>Clang 21 (Partial)</summary>
The feature test macro (<code>__cpp_trivial_relocatability</code>) has not yet been set.
</details>
</td>
<td class="unreleased" align="center">Clang 21</td>
</tr>
<tr>
<td><pre>#embed</pre></td>
Expand Down
Loading