[libcxx-commits] [libcxx] [libc++][NFC] Replace _LIBCPP_NORETURN and TEST_NORETURN with [[noreturn]] (PR #80455)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 4 04:32:45 PDT 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 771b7af1db15e59f370ccadaa98bee8e5270b5f1 3106e497af784f31f0955f224be75cc17b79d834 --extensions ,h,cpp -- libcxx/include/__chrono/exception.h libcxx/include/__config libcxx/include/__exception/exception_ptr.h libcxx/include/__exception/nested_exception.h libcxx/include/__exception/operations.h libcxx/include/__exception/terminate.h libcxx/include/__filesystem/filesystem_error.h libcxx/include/__format/format_error.h libcxx/include/__format/parser_std_format_spec.h libcxx/include/__functional/function.h libcxx/include/__memory/shared_ptr.h libcxx/include/__system_error/system_error.h libcxx/include/__utility/unreachable.h libcxx/include/__verbose_abort libcxx/include/any libcxx/include/future libcxx/include/ios libcxx/include/new libcxx/include/optional libcxx/include/regex libcxx/include/stdexcept libcxx/include/string libcxx/include/typeinfo libcxx/include/variant libcxx/include/vector libcxx/src/stdexcept.cpp libcxx/src/string.cpp libcxx/src/vector.cpp libcxx/test/support/assert_macros.h libcxx/test/support/check_assertion.h libcxx/test/support/count_new.h libcxx/test/support/test_macros.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/support/count_new.h b/libcxx/test/support/count_new.h
index 4a6d74b9d6..50e7f4707b 100644
--- a/libcxx/test/support/count_new.h
+++ b/libcxx/test/support/count_new.h
@@ -24,13 +24,13 @@
namespace detail
{
- [[noreturn]] inline void throw_bad_alloc_helper() {
+[[noreturn]] inline void throw_bad_alloc_helper() {
#ifndef TEST_HAS_NO_EXCEPTIONS
throw std::bad_alloc();
#else
std::abort();
#endif
- }
+}
}
class MemCounter
``````````
</details>
https://github.com/llvm/llvm-project/pull/80455
More information about the libcxx-commits
mailing list