[libc-commits] [libc] [libc][wctype] Create generation script for classification lookup tables (PR #172042)
via libc-commits
libc-commits at lists.llvm.org
Fri Dec 12 08:30:10 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,h -- libc/src/__support/wctype/wctype_classification_utils.h libc/test/src/__support/wctype/wctype_classification_utils_test.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/libc/src/__support/wctype/wctype_classification_utils.h b/libc/src/__support/wctype/wctype_classification_utils.h
index 543d1dda7..bc4dfc007 100644
--- a/libc/src/__support/wctype/wctype_classification_utils.h
+++ b/libc/src/__support/wctype/wctype_classification_utils.h
@@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
// DO NOT EDIT MANUALLY.
// This file is generated by libc/utils/wctype_utils scripts.
-
+
#ifndef LLVM_LIBC_SRC___SUPPORT_WCTYPE_WCTYPE_CLASSIFICATION_UTILS_H
#define LLVM_LIBC_SRC___SUPPORT_WCTYPE_WCTYPE_CLASSIFICATION_UTILS_H
@@ -17,7 +17,7 @@
#include "src/__support/macros/config.h"
namespace LIBC_NAMESPACE_DECL {
-
+
// Property flags for Unicode categories
enum PropertyFlag : uint8_t {
UPPER = 1 << 0,
@@ -3722,4 +3722,3 @@ inline constexpr uint8_t lookup_properties(const wchar_t wc) {
} // namespace LIBC_NAMESPACE_DECL
#endif // LLVM_LIBC_SRC___SUPPORT_WCTYPE_WCTYPE_CLASSIFICATION_UTILS_H
-
``````````
</details>
https://github.com/llvm/llvm-project/pull/172042
More information about the libc-commits
mailing list