[libcxx-commits] [libcxxabi] [libc++abi] Use a strong enum for path kind tracking (PR #230769)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Oct 10 02:49:03 PDT 2026
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,h -- libcxxabi/src/private_typeinfo.cpp libcxxabi/src/private_typeinfo.h --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/libcxxabi/src/private_typeinfo.cpp b/libcxxabi/src/private_typeinfo.cpp
index 5799e8e29..a934d1764 100644
--- a/libcxxabi/src/private_typeinfo.cpp
+++ b/libcxxabi/src/private_typeinfo.cpp
@@ -523,7 +523,8 @@ void __si_class_type_info::has_unambiguous_public_base(
__base_type->has_unambiguous_public_base(info, adjustedPtr, path_below);
}
-void __base_class_type_info::has_unambiguous_public_base(catch_info* info, void* adjustedPtr, path_kind path_below) const {
+void __base_class_type_info::has_unambiguous_public_base(
+ catch_info* info, void* adjustedPtr, path_kind path_below) const {
bool is_virtual = __offset_flags & __virtual_mask;
ptrdiff_t offset_to_base = 0;
if (info->have_object) {
@@ -554,7 +555,8 @@ void __base_class_type_info::has_unambiguous_public_base(catch_info* info, void*
(__offset_flags & __public_mask) ? path_below : path_kind::not_public_path);
}
-void __vmi_class_type_info::has_unambiguous_public_base(catch_info* info, void* adjustedPtr, path_kind path_below) const {
+void __vmi_class_type_info::has_unambiguous_public_base(
+ catch_info* info, void* adjustedPtr, path_kind path_below) const {
if (is_equal(this, info->static_type, false))
process_found_base_class(info, adjustedPtr, path_below);
else {
``````````
</details>
https://github.com/llvm/llvm-project/pull/230769
More information about the libcxx-commits
mailing list