[libcxx-commits] [libcxx] [libc++] Deprecate std::launch::any extension (PR #173397)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Dec 24 09:59:34 PST 2025
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 origin/main HEAD --extensions ,cpp -- libcxx/test/libcxx/thread/futures/launch_any_deprecated.verify.cpp libcxx/include/future libcxx/test/libcxx/diagnostics/future.nodiscard.verify.cpp libcxx/test/std/thread/futures/futures.async/async.pass.cpp libcxx/test/std/thread/futures/futures.overview/launch.pass.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/future b/libcxx/include/future
index 3f578ed49..bac220864 100644
--- a/libcxx/include/future
+++ b/libcxx/include/future
@@ -435,12 +435,11 @@ struct is_error_code_enum<future_errc::__lx> : public true_type {};
// enum class launch
_LIBCPP_DECLARE_STRONG_ENUM(launch){
- async = 1,
- deferred = 2,
- any _LIBCPP_DEPRECATED_("std::launch::any is a deprecated extension. "
- "Use std::launch::async | std::launch::deferred instead. "
- "It will be removed in LLVM 24.") = async | deferred
-};
+ async = 1,
+ deferred = 2,
+ any _LIBCPP_DEPRECATED_("std::launch::any is a deprecated extension. "
+ "Use std::launch::async | std::launch::deferred instead. "
+ "It will be removed in LLVM 24.") = async | deferred};
_LIBCPP_DECLARE_STRONG_ENUM_EPILOG(launch)
# ifndef _LIBCPP_CXX03_LANG
``````````
</details>
https://github.com/llvm/llvm-project/pull/173397
More information about the libcxx-commits
mailing list