[libcxx-commits] [libcxx] Revert "[libc++] Introduce ABI sensitive areas to avoid requiring _LIBCPP_HIDE_FROM_ABI everywhere (#131156)" (PR #141756)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 28 06:06:47 PDT 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 HEAD~1 HEAD --extensions ,h,cpp -- libcxx/include/__algorithm/shuffle.h libcxx/include/__algorithm/sort.h libcxx/include/__atomic/atomic_sync.h libcxx/include/__charconv/from_chars_floating_point.h libcxx/include/__charconv/to_chars_floating_point.h libcxx/include/__chrono/exception.h libcxx/include/__chrono/file_clock.h libcxx/include/__chrono/steady_clock.h libcxx/include/__chrono/system_clock.h libcxx/include/__condition_variable/condition_variable.h libcxx/include/__config libcxx/include/__exception/exception.h libcxx/include/__exception/exception_ptr.h libcxx/include/__exception/nested_exception.h libcxx/include/__exception/operations.h libcxx/include/__exception/terminate.h libcxx/include/__expected/bad_expected_access.h libcxx/include/__filesystem/directory_entry.h libcxx/include/__filesystem/directory_iterator.h libcxx/include/__filesystem/filesystem_error.h libcxx/include/__filesystem/operations.h libcxx/include/__filesystem/path.h libcxx/include/__filesystem/path_iterator.h libcxx/include/__filesystem/recursive_directory_iterator.h libcxx/include/__format/format_error.h libcxx/include/__functional/function.h libcxx/include/__functional/hash.h libcxx/include/__hash_table libcxx/include/__locale libcxx/include/__locale_dir/support/windows.h libcxx/include/__memory/align.h libcxx/include/__memory/shared_count.h libcxx/include/__memory/shared_ptr.h libcxx/include/__memory_resource/memory_resource.h libcxx/include/__memory_resource/monotonic_buffer_resource.h libcxx/include/__memory_resource/synchronized_pool_resource.h libcxx/include/__memory_resource/unsynchronized_pool_resource.h libcxx/include/__mutex/mutex.h libcxx/include/__mutex/once_flag.h libcxx/include/__new/exceptions.h libcxx/include/__new/new_handler.h libcxx/include/__ostream/basic_ostream.h libcxx/include/__ostream/print.h libcxx/include/__pstl/backends/libdispatch.h libcxx/include/__random/binomial_distribution.h libcxx/include/__random/random_device.h libcxx/include/__system_error/error_category.h libcxx/include/__system_error/error_code.h libcxx/include/__system_error/error_condition.h libcxx/include/__system_error/system_error.h libcxx/include/__system_error/throw_system_error.h libcxx/include/__thread/support/windows.h libcxx/include/__thread/this_thread.h libcxx/include/__thread/thread.h libcxx/include/__verbose_abort libcxx/include/any libcxx/include/barrier libcxx/include/codecvt libcxx/include/condition_variable libcxx/include/fstream libcxx/include/future libcxx/include/ios libcxx/include/istream libcxx/include/locale libcxx/include/mutex libcxx/include/print libcxx/include/regex libcxx/include/shared_mutex libcxx/include/sstream libcxx/include/stdexcept libcxx/include/streambuf libcxx/include/string libcxx/include/strstream libcxx/include/valarray libcxx/include/variant libcxx/src/algorithm.cpp libcxx/src/any.cpp libcxx/src/atomic.cpp libcxx/src/barrier.cpp libcxx/src/call_once.cpp libcxx/src/charconv.cpp libcxx/src/chrono.cpp libcxx/src/condition_variable.cpp libcxx/src/condition_variable_destructor.cpp libcxx/src/error_category.cpp libcxx/src/expected.cpp libcxx/src/experimental/chrono_exception.cpp libcxx/src/filesystem/directory_entry.cpp libcxx/src/filesystem/directory_iterator.cpp libcxx/src/filesystem/filesystem_clock.cpp libcxx/src/filesystem/filesystem_error.cpp libcxx/src/filesystem/operations.cpp libcxx/src/filesystem/path.cpp libcxx/src/fstream.cpp libcxx/src/functional.cpp libcxx/src/future.cpp libcxx/src/hash.cpp libcxx/src/ios.cpp libcxx/src/iostream.cpp libcxx/src/locale.cpp libcxx/src/memory.cpp libcxx/src/memory_resource.cpp libcxx/src/mutex.cpp libcxx/src/mutex_destructor.cpp libcxx/src/optional.cpp libcxx/src/ostream.cpp libcxx/src/print.cpp libcxx/src/random.cpp libcxx/src/random_shuffle.cpp libcxx/src/regex.cpp libcxx/src/shared_mutex.cpp libcxx/src/std_stream.h libcxx/src/stdexcept.cpp libcxx/src/string.cpp libcxx/src/strstream.cpp libcxx/src/support/win32/locale_win32.cpp libcxx/src/support/win32/thread_win32.cpp libcxx/src/system_error.cpp libcxx/src/thread.cpp libcxx/src/valarray.cpp libcxx/src/vector.cpp libcxx/src/verbose_abort.cpp libcxx/test/tools/clang_tidy_checks/hide_from_abi.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/include/__verbose_abort b/libcxx/include/__verbose_abort
index f8b696733..73295cae4 100644
--- a/libcxx/include/__verbose_abort
+++ b/libcxx/include/__verbose_abort
@@ -20,8 +20,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 
 // This function should never be called directly from the code -- it should only be called through
 // the _LIBCPP_VERBOSE_ABORT macro.
-[[__noreturn__]] _LIBCPP_AVAILABILITY_VERBOSE_ABORT _LIBCPP_OVERRIDABLE_FUNC_VIS _LIBCPP_ATTRIBUTE_FORMAT(
-    __printf__, 1, 2) void __libcpp_verbose_abort(const char* __format, ...) _NOEXCEPT;
+[[__noreturn__]] _LIBCPP_AVAILABILITY_VERBOSE_ABORT _LIBCPP_OVERRIDABLE_FUNC_VIS
+_LIBCPP_ATTRIBUTE_FORMAT(__printf__, 1, 2) void __libcpp_verbose_abort(const char* __format, ...) _NOEXCEPT;
 
 // _LIBCPP_VERBOSE_ABORT(format, args...)
 //

``````````

</details>


https://github.com/llvm/llvm-project/pull/141756


More information about the libcxx-commits mailing list