[libcxx-commits] [libcxx] [libc++] Deprecates std::errc constants. (PR #80542)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 9 06:17:42 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff a5d3a1dbc8c9bd1ea76550a4bac44d25b1e43a5e 5b584c407d068e8038ce31d925855cb24519bf54 -- libcxx/test/std/depr.cerro/cerrno.syn.verify.cpp libcxx/test/std/depr.cerro/system.error.syn.verify.cpp libcxx/include/__system_error/errc.h libcxx/include/cerrno libcxx/src/random.cpp libcxx/test/std/diagnostics/syserr/errc.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/depr.cerro/system.error.syn.verify.cpp b/libcxx/test/std/depr.cerro/system.error.syn.verify.cpp
index d632b146b6..830886cc11 100644
--- a/libcxx/test/std/depr.cerro/system.error.syn.verify.cpp
+++ b/libcxx/test/std/depr.cerro/system.error.syn.verify.cpp
@@ -21,4 +21,4 @@
std::errc::no_stream_resources; // expected-warning {{'no_stream_resources' is deprecated}}
[[maybe_unused]] std::errc nostr = std::errc::not_a_stream; // expected-warning {{'not_a_stream' is deprecated}}
[[maybe_unused]] std::errc timeout = std::errc::stream_timeout; // expected-warning {{'stream_timeout' is deprecated}}
-#endif // (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1)
+#endif // (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1)
``````````
</details>
https://github.com/llvm/llvm-project/pull/80542
More information about the libcxx-commits
mailing list